Skip to content

Commit

Permalink
NONE: Update eslint (#2545)
Browse files Browse the repository at this point in the history
* NONE: Update eslint
  • Loading branch information
atraversatlassian authored Nov 10, 2023
1 parent e1b3e5b commit 4b8fdc6
Show file tree
Hide file tree
Showing 7 changed files with 389 additions and 210 deletions.
29 changes: 26 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
"plugin:@typescript-eslint/strict-type-checked"
],
"settings": {
"import/parsers": {
Expand Down Expand Up @@ -134,5 +133,29 @@
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off"
}
}]
},
{
"files": ["src/**/*.ts", "test/**/*.ts"],
"rules": {
// TODO: Re-enable gradually
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/prefer-includes": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-extraneous-class": "off"
}
}
]
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,17 @@
"@types/rate-limit-redis": "^1.7.1",
"@types/supertest": "^2.0.11",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "~5.62.0",
"@typescript-eslint/parser": "~5.62.0",
"@typescript-eslint/eslint-plugin": "~6.10.0",
"@typescript-eslint/parser": "~6.10.0",
"chai": "^4.3.6",
"dotenv-cli": "^6.0.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "~8.3.0",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-config-prettier": "~9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^27.4.0",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-no-only-tests": "^2.6.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"husky": "^6.0.0",
Expand Down
8 changes: 4 additions & 4 deletions spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"eslint": "^8.38.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"eslint-plugin-react-refresh": "^0.4.4",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"nock": "^13.3.2",
Expand Down
1 change: 0 additions & 1 deletion spa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
Loading

0 comments on commit 4b8fdc6

Please sign in to comment.