diff --git a/packages/apps/dashboard/client/eslint.config.mjs b/packages/apps/dashboard/client/eslint.config.mjs index 6605a1e56a..d41d2254a2 100644 --- a/packages/apps/dashboard/client/eslint.config.mjs +++ b/packages/apps/dashboard/client/eslint.config.mjs @@ -46,6 +46,8 @@ export default tseslint.config( }, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'react/prop-types': 'off', 'react/display-name': 'off', 'react/react-in-jsx-scope': 'off', diff --git a/packages/apps/dashboard/client/package.json b/packages/apps/dashboard/client/package.json index 0e0346a378..257402efaf 100644 --- a/packages/apps/dashboard/client/package.json +++ b/packages/apps/dashboard/client/package.json @@ -46,7 +46,7 @@ "zustand": "^5.0.10" }, "devDependencies": { - "@eslint/js": "^9.27.0", + "@eslint/js": "^10.0.1", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@typescript-eslint/eslint-plugin": "^7.2.0", diff --git a/packages/apps/dashboard/server/eslint.config.mjs b/packages/apps/dashboard/server/eslint.config.mjs index 0d8f27e5ea..12c294c9ab 100644 --- a/packages/apps/dashboard/server/eslint.config.mjs +++ b/packages/apps/dashboard/server/eslint.config.mjs @@ -30,6 +30,8 @@ export default tseslint.config( jest: jestPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/faucet/client/eslint.config.mjs b/packages/apps/faucet/client/eslint.config.mjs index e6ac5e722b..a20306124a 100644 --- a/packages/apps/faucet/client/eslint.config.mjs +++ b/packages/apps/faucet/client/eslint.config.mjs @@ -25,6 +25,8 @@ export default tseslint.config( }, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/faucet/server/eslint.config.mjs b/packages/apps/faucet/server/eslint.config.mjs index 1c908b5aea..c7c9b424f2 100644 --- a/packages/apps/faucet/server/eslint.config.mjs +++ b/packages/apps/faucet/server/eslint.config.mjs @@ -24,6 +24,8 @@ export default tseslint.config( }, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'no-console': 'warn', 'prettier/prettier': 'error', '@/quotes': [ diff --git a/packages/apps/fortune/exchange-oracle/client/eslint.config.mjs b/packages/apps/fortune/exchange-oracle/client/eslint.config.mjs index 3649fc8f9a..ee368a0556 100644 --- a/packages/apps/fortune/exchange-oracle/client/eslint.config.mjs +++ b/packages/apps/fortune/exchange-oracle/client/eslint.config.mjs @@ -35,6 +35,8 @@ const config = tseslint.config( 'react-refresh': reactRefreshPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', 'react-refresh/only-export-components': [ diff --git a/packages/apps/fortune/exchange-oracle/server/eslint.config.mjs b/packages/apps/fortune/exchange-oracle/server/eslint.config.mjs index 471eb358d4..3c398c43c0 100644 --- a/packages/apps/fortune/exchange-oracle/server/eslint.config.mjs +++ b/packages/apps/fortune/exchange-oracle/server/eslint.config.mjs @@ -29,6 +29,8 @@ const config = tseslint.config( jest: jestPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/fortune/recording-oracle/eslint.config.mjs b/packages/apps/fortune/recording-oracle/eslint.config.mjs index c131251039..e2042f3b2f 100644 --- a/packages/apps/fortune/recording-oracle/eslint.config.mjs +++ b/packages/apps/fortune/recording-oracle/eslint.config.mjs @@ -29,6 +29,8 @@ export default tseslint.config( jest: jestPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'no-console': 'warn', 'prettier/prettier': 'error', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/human-app/frontend/eslint.config.mjs b/packages/apps/human-app/frontend/eslint.config.mjs index fb7986dd00..21c512d7f1 100644 --- a/packages/apps/human-app/frontend/eslint.config.mjs +++ b/packages/apps/human-app/frontend/eslint.config.mjs @@ -34,6 +34,8 @@ export default tseslint.config( import: eslintPluginImport, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/human-app/server/eslint.config.mjs b/packages/apps/human-app/server/eslint.config.mjs index 2d61b62292..600fdc911e 100644 --- a/packages/apps/human-app/server/eslint.config.mjs +++ b/packages/apps/human-app/server/eslint.config.mjs @@ -30,6 +30,8 @@ const config = tseslint.config( jest: jestPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'no-console': 'warn', 'prettier/prettier': 'error', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/job-launcher/client/eslint.config.mjs b/packages/apps/job-launcher/client/eslint.config.mjs index 349d15df68..0016de8981 100644 --- a/packages/apps/job-launcher/client/eslint.config.mjs +++ b/packages/apps/job-launcher/client/eslint.config.mjs @@ -33,6 +33,8 @@ export default tseslint.config( import: eslintPluginImport, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/job-launcher/server/eslint.config.mjs b/packages/apps/job-launcher/server/eslint.config.mjs index 4f8ea39dc5..8dd55ac3e3 100644 --- a/packages/apps/job-launcher/server/eslint.config.mjs +++ b/packages/apps/job-launcher/server/eslint.config.mjs @@ -30,6 +30,8 @@ const config = tseslint.config( jest: jestPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/apps/reputation-oracle/server/eslint.config.mjs b/packages/apps/reputation-oracle/server/eslint.config.mjs index 19d77d0394..6275a10188 100644 --- a/packages/apps/reputation-oracle/server/eslint.config.mjs +++ b/packages/apps/reputation-oracle/server/eslint.config.mjs @@ -28,6 +28,8 @@ export default tseslint.config( 'import': importPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-floating-promises': 'warn', '@typescript-eslint/no-unsafe-argument': 'warn', diff --git a/packages/apps/reputation-oracle/server/package.json b/packages/apps/reputation-oracle/server/package.json index 83b3a75c43..7d81a0d2ae 100644 --- a/packages/apps/reputation-oracle/server/package.json +++ b/packages/apps/reputation-oracle/server/package.json @@ -73,7 +73,7 @@ "zxcvbn": "^4.4.2" }, "devDependencies": { - "@eslint/js": "^9.33.0", + "@eslint/js": "^10.0.1", "@faker-js/faker": "^9.8.0", "@golevelup/ts-jest": "^0.6.1", "@nestjs/cli": "^11.0.16", diff --git a/packages/apps/staking/eslint.config.mjs b/packages/apps/staking/eslint.config.mjs index 6515b17715..72bf9bf8bd 100644 --- a/packages/apps/staking/eslint.config.mjs +++ b/packages/apps/staking/eslint.config.mjs @@ -29,6 +29,8 @@ export default tseslint.config( 'react-refresh': reactRefreshPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', 'react-refresh/only-export-components': [ diff --git a/packages/core/eslint.config.mjs b/packages/core/eslint.config.mjs index 35f4c1108c..77a2c72261 100644 --- a/packages/core/eslint.config.mjs +++ b/packages/core/eslint.config.mjs @@ -26,6 +26,8 @@ export default tseslint.config( }, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'no-console': 'warn', 'prefer-const': 'warn', 'no-extra-semi': 'off', diff --git a/packages/examples/gcv/eslint.config.mjs b/packages/examples/gcv/eslint.config.mjs index df1b4ffb4b..c127f82b7f 100644 --- a/packages/examples/gcv/eslint.config.mjs +++ b/packages/examples/gcv/eslint.config.mjs @@ -30,6 +30,8 @@ const config = tseslint.config( jest: jestPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/packages/libs/logger/eslint.config.mjs b/packages/libs/logger/eslint.config.mjs index 3dda18fe0c..0e913843d1 100644 --- a/packages/libs/logger/eslint.config.mjs +++ b/packages/libs/logger/eslint.config.mjs @@ -33,6 +33,8 @@ export default tseslint.config( }, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-floating-promises': 'warn', '@typescript-eslint/no-unsafe-argument': 'warn', diff --git a/packages/libs/logger/package.json b/packages/libs/logger/package.json index ca74a9a0ff..39b501ad69 100644 --- a/packages/libs/logger/package.json +++ b/packages/libs/logger/package.json @@ -20,7 +20,7 @@ "pino-pretty": "^13.1.3" }, "devDependencies": { - "@eslint/js": "^9.30.1", + "@eslint/js": "^10.0.1", "@types/node": "^22.10.5", "eslint": "^9.39.1", "eslint-config-prettier": "^10.1.5", diff --git a/packages/sdk/typescript/human-protocol-sdk/eslint.config.mjs b/packages/sdk/typescript/human-protocol-sdk/eslint.config.mjs index 0bf91c4406..ea3fd32317 100644 --- a/packages/sdk/typescript/human-protocol-sdk/eslint.config.mjs +++ b/packages/sdk/typescript/human-protocol-sdk/eslint.config.mjs @@ -31,6 +31,8 @@ export default tseslint.config( jest: jestPlugin, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'no-console': 'warn', '@/quotes': [ 'error', diff --git a/packages/sdk/typescript/subgraph/eslint.config.mjs b/packages/sdk/typescript/subgraph/eslint.config.mjs index e3b3ba3aa9..666059c3d0 100644 --- a/packages/sdk/typescript/subgraph/eslint.config.mjs +++ b/packages/sdk/typescript/subgraph/eslint.config.mjs @@ -27,6 +27,8 @@ export default tseslint.config( }, }, rules: { + 'no-useless-assignment': 'off', + 'preserve-caught-error': 'off', 'no-console': 'warn', '@/quotes': [ 'error', diff --git a/yarn.lock b/yarn.lock index 0db0c9afc7..65f795e8a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -105,7 +105,7 @@ __metadata: dependencies: "@emotion/react": "npm:^11.11.4" "@emotion/styled": "npm:^11.11.5" - "@eslint/js": "npm:^9.27.0" + "@eslint/js": "npm:^10.0.1" "@human-protocol/sdk": "workspace:*" "@mui/icons-material": "npm:^7.2.0" "@mui/material": "npm:^7.2.0" @@ -680,7 +680,7 @@ __metadata: version: 0.0.0-use.local resolution: "@apps/reputation-oracle@workspace:packages/apps/reputation-oracle/server" dependencies: - "@eslint/js": "npm:^9.33.0" + "@eslint/js": "npm:^10.0.1" "@faker-js/faker": "npm:^9.8.0" "@golevelup/ts-jest": "npm:^0.6.1" "@human-protocol/core": "workspace:*" @@ -3808,10 +3808,15 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:^9.27.0, @eslint/js@npm:^9.30.1, @eslint/js@npm:^9.33.0": - version: 9.39.0 - resolution: "@eslint/js@npm:9.39.0" - checksum: 10c0/f0ac65784932f1a5d3b9c0db12eb1ff9dcb480dbd03da1045e5da820bd97a35875fb7790f1fbe652763270b1327b770c79a9ba0396e2ad91fbd97822493e67eb +"@eslint/js@npm:^10.0.1": + version: 10.0.1 + resolution: "@eslint/js@npm:10.0.1" + peerDependencies: + eslint: ^10.0.0 + peerDependenciesMeta: + eslint: + optional: true + checksum: 10c0/9f3fcaf71ba7fdf65d82e8faad6ecfe97e11801cc3c362b306a88ea1ed1344ae0d35330dddb0e8ad18f010f6687a70b75491b9e01c8af57acd7987cee6b3ec6c languageName: node linkType: hard @@ -4974,7 +4979,7 @@ __metadata: version: 0.0.0-use.local resolution: "@human-protocol/logger@workspace:packages/libs/logger" dependencies: - "@eslint/js": "npm:^9.30.1" + "@eslint/js": "npm:^10.0.1" "@types/node": "npm:^22.10.5" eslint: "npm:^9.39.1" eslint-config-prettier: "npm:^10.1.5"