Skip to content

Commit 788682d

Browse files
authored
Merge pull request #783 from abraham/eslint
Update eslint to v9
2 parents eb324a8 + dbf520c commit 788682d

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

eslint.config.mjs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import eslint from '@eslint/js';
2+
import importPlugin from 'eslint-plugin-import';
3+
import jest from 'eslint-plugin-jest';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
9+
importPlugin.flatConfigs.errors,
10+
importPlugin.flatConfigs.typescript,
11+
{
12+
plugins: { jest },
13+
rules: {
14+
'@typescript-eslint/no-unsafe-function-type': 'off',
15+
'@typescript-eslint/no-explicit-any': 'warn',
16+
},
17+
},
18+
);

package.json

+6-26
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@
4545
},
4646
"homepage": "https://github.com/abraham/reflection#readme",
4747
"devDependencies": {
48-
"pkg-ok": "^3.0.0",
48+
"@eslint/js": "^9.0.0",
4949
"@types/jest": "^29.0.0",
50-
"@typescript-eslint/eslint-plugin": "^8.0.0",
51-
"@typescript-eslint/parser": "^8.0.0",
52-
"eslint": "^8.0.0",
50+
"eslint": "^9.0.0",
5351
"eslint-plugin-import": "^2.0.0",
5452
"eslint-plugin-jest": "^28.0.0",
5553
"jest": "^29.0.0",
54+
"pkg-ok": "^3.0.0",
5655
"prettier": "^3.0.0",
57-
"rimraf": "^6.0.0",
56+
"rimraf": "^6.0.1",
5857
"rollup": "^4.0.0",
5958
"ts-jest": "^29.0.0",
60-
"typescript": "^5.0.0"
59+
"typescript": "^5.0.0",
60+
"typescript-eslint": "^8.0.0"
6161
},
6262
"jest": {
6363
"collectCoverage": true,
@@ -77,26 +77,6 @@
7777
"node"
7878
]
7979
},
80-
"eslintConfig": {
81-
"root": true,
82-
"parser": "@typescript-eslint/parser",
83-
"plugins": [
84-
"@typescript-eslint",
85-
"jest"
86-
],
87-
"extends": [
88-
"eslint:recommended",
89-
"plugin:@typescript-eslint/eslint-recommended",
90-
"plugin:@typescript-eslint/recommended",
91-
"plugin:jest/recommended",
92-
"plugin:import/errors",
93-
"plugin:import/typescript"
94-
],
95-
"rules": {
96-
"@typescript-eslint/no-unsafe-function-type": "off",
97-
"@typescript-eslint/no-explicit-any": "warn"
98-
}
99-
},
10080
"prettier": {
10181
"singleQuote": true,
10282
"trailingComma": "all"

0 commit comments

Comments
 (0)