Skip to content

Commit 9540c44

Browse files
Fix ESLint failures
- Updates to ESLint v10 and fixes lint failures. - Aligns tsconfig on Node 20, which is the current minimum required Node version. - Adds package-lock.json files to source control to avoid future random failures when dependencies update. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent 4f70b66 commit 9540c44

File tree

73 files changed

+17016
-4407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+17016
-4407
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ vendor/
1313
.idea
1414
# Dependency directories
1515
node_modules/
16-
package-lock.json
1716
# Ignore Gradle build output directory
1817
build
1918
# Ignore Maven build output directory

asset-transfer-basic/application-gateway-typescript/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import js from '@eslint/js';
2+
import { defineConfig } from 'eslint/config';
23
import tseslint from 'typescript-eslint';
34

4-
export default tseslint.config(js.configs.recommended, ...tseslint.configs.strictTypeChecked, {
5+
export default defineConfig(js.configs.recommended, ...tseslint.configs.strictTypeChecked, {
56
languageOptions: {
67
ecmaVersion: 2023,
78
sourceType: 'module',

asset-transfer-basic/application-gateway-typescript/package-lock.json

Lines changed: 1659 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset-transfer-basic/application-gateway-typescript/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"@hyperledger/fabric-gateway": "^1.10.0"
2424
},
2525
"devDependencies": {
26-
"@eslint/js": "^9.3.0",
27-
"@tsconfig/node18": "^18.2.2",
28-
"@types/node": "^18.18.6",
29-
"eslint": "^8.57.0",
30-
"typescript": "~5.4",
31-
"typescript-eslint": "^7.13.0"
26+
"@eslint/js": "^10.0.1",
27+
"@tsconfig/node20": "^20.1.9",
28+
"@types/node": "^20.19.33",
29+
"eslint": "^10.0.2",
30+
"typescript": "~5.8",
31+
"typescript-eslint": "^8.56.1"
3232
}
3333
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node18/tsconfig.json",
2+
"extends": "@tsconfig/node20/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"declaration": true,
@@ -10,6 +10,6 @@
1010
"noUncheckedIndexedAccess": true,
1111
"forceConsistentCasingInFileNames": true
1212
},
13-
"include": ["./src/**/*"],
14-
"exclude": ["./src/**/*.spec.ts"]
13+
"include": ["src/"],
14+
"exclude": ["**/*.spec.*"]
1515
}

asset-transfer-basic/chaincode-typescript/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import js from '@eslint/js';
2+
import { defineConfig } from 'eslint/config';
23
import tseslint from 'typescript-eslint';
34

4-
export default tseslint.config(js.configs.recommended, ...tseslint.configs.strictTypeChecked, {
5+
export default defineConfig(js.configs.recommended, ...tseslint.configs.strictTypeChecked, {
56
languageOptions: {
67
ecmaVersion: 2023,
78
sourceType: 'module',

0 commit comments

Comments
 (0)