Skip to content

Commit c3108b0

Browse files
committed
style: bump eslint to 9
1 parent c2daf7f commit c3108b0

File tree

4 files changed

+1247
-306
lines changed

4 files changed

+1247
-306
lines changed

.eslintrc

-30
This file was deleted.

eslint.config.mjs

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import eslint from '@eslint/js';
2+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
3+
import globals from 'globals';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
{
8+
ignores: ['node_modules', '**/node_modules/**', '**/*.js', '**/*.d.ts']
9+
},
10+
eslint.configs.recommended,
11+
...tseslint.configs.recommendedTypeChecked,
12+
eslintPluginPrettierRecommended,
13+
{
14+
languageOptions: {
15+
globals: {
16+
...globals.node,
17+
...globals.jest
18+
},
19+
ecmaVersion: 5,
20+
sourceType: 'module',
21+
parserOptions: {
22+
project: ['tsconfig.json', 'tsconfig.build.json', 'tsconfig.spec.json'],
23+
projectService: true,
24+
tsconfigRootDir: import.meta.dirname
25+
}
26+
}
27+
},
28+
{
29+
rules: {
30+
'@typescript-eslint/no-explicit-any': 'off',
31+
'@typescript-eslint/no-unsafe-assignment': 'off',
32+
'@typescript-eslint/no-unsafe-call': 'off',
33+
'@typescript-eslint/no-unsafe-member-access': 'off',
34+
'@typescript-eslint/no-unsafe-function-type': 'off',
35+
'@typescript-eslint/no-unsafe-argument': 'off',
36+
'@typescript-eslint/no-unsafe-return': 'off',
37+
'@typescript-eslint/no-unused-expressions': 'off',
38+
'@typescript-eslint/no-require-imports': 'off',
39+
'@typescript-eslint/no-unused-vars': 'off',
40+
'@typescript-eslint/no-misused-promises': [
41+
'error',
42+
{
43+
checksVoidReturn: false,
44+
checksConditionals: false
45+
}
46+
],
47+
'@typescript-eslint/require-await': 'off',
48+
'@typescript-eslint/prefer-promise-reject-errors': 'off',
49+
'@typescript-eslint/no-base-to-string': 'off',
50+
'@typescript-eslint/unbound-method': 'off',
51+
'@typescript-eslint/only-throw-error': 'off'
52+
}
53+
}
54+
);

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,19 @@
5656
"devDependencies": {
5757
"@commitlint/cli": "19.6.1",
5858
"@commitlint/config-angular": "19.7.0",
59+
"@eslint/eslintrc": "^3.2.0",
60+
"@eslint/js": "^9.18.0",
5961
"@favware/npm-deprecate": "2.0.0",
6062
"@nestjs/cli": "11.0.0",
6163
"@nestjs/schematics": "11.0.0",
6264
"@nestjs/testing": "10.4.15",
6365
"@types/jest": "29.5.14",
6466
"@types/node": "22.10.7",
65-
"@typescript-eslint/eslint-plugin": "7.0.0",
66-
"@typescript-eslint/parser": "6.21.0",
67-
"eslint": "8.57.1",
67+
"eslint": "^9.18.0",
6868
"eslint-config-prettier": "10.0.1",
69+
"eslint-plugin-import": "^2.31.0",
6970
"eslint-plugin-prettier": "5.2.3",
71+
"globals": "^15.14.0",
7072
"husky": "9.1.7",
7173
"jest": "29.7.0",
7274
"lint-staged": "15.4.1",
@@ -77,6 +79,7 @@
7779
"rxjs": "7.8.1",
7880
"ts-jest": "29.2.5",
7981
"ts-node": "10.9.2",
80-
"typescript": "5.7.3"
82+
"typescript": "5.7.3",
83+
"typescript-eslint": "^8.21.0"
8184
}
8285
}

0 commit comments

Comments
 (0)