Skip to content

Commit 69e7965

Browse files
committed
chore: upgrade eslint to v9
1 parent 537c79d commit 69e7965

File tree

8 files changed

+495
-841
lines changed

8 files changed

+495
-841
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// @ts-check
2+
import eslint from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import globals from "globals";
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
9+
{
10+
name: 'global ignore',
11+
ignores: ['coverage/', 'dist/', 'src/test/']
12+
},
13+
{
14+
languageOptions: {
15+
globals: {
16+
...globals.nodeBuiltin
17+
}
18+
},
19+
rules: {
20+
'@typescript-eslint/no-explicit-any': 'off',
21+
'@typescript-eslint/no-require-imports': 'warn',
22+
'@typescript-eslint/no-unused-vars': [ 'error',
23+
{ caughtErrors: 'none' }
24+
]
25+
}
26+
}
27+
);

0 commit comments

Comments
 (0)