Skip to content

Commit 7b205f5

Browse files
chore: upgrade to eslint v9
1 parent dfaa59a commit 7b205f5

27 files changed

Lines changed: 456 additions & 196 deletions

.eslintignore

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

.eslintrc.js

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

eslint.config.mjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// @ts-check
2+
import eslint from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
5+
import globals from 'globals';
6+
7+
export default tseslint.config(
8+
{
9+
ignores: ['eslint.config.mjs', 'src/**/*.test.ts', 'src/**/files/**', 'test/**'],
10+
},
11+
eslint.configs.recommended,
12+
...tseslint.configs.recommendedTypeChecked,
13+
eslintPluginPrettierRecommended,
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.node,
18+
...globals.jest,
19+
},
20+
ecmaVersion: 5,
21+
sourceType: 'module',
22+
parserOptions: {
23+
projectService: true,
24+
tsconfigRootDir: import.meta.dirname,
25+
},
26+
},
27+
},
28+
{
29+
rules: {
30+
'@typescript-eslint/interface-name-prefix': 'off',
31+
'@typescript-eslint/explicit-function-return-type': 'off',
32+
'@typescript-eslint/explicit-module-boundary-types': 'off',
33+
'@typescript-eslint/no-explicit-any': 'off',
34+
'@typescript-eslint/no-unsafe-assignment': 'off',
35+
'@typescript-eslint/no-require-imports': 'off',
36+
'@typescript-eslint/no-unsafe-call': 'off',
37+
'@typescript-eslint/no-unsafe-member-access': 'off',
38+
},
39+
},
40+
);

0 commit comments

Comments
 (0)