forked from pierr3/TrackAudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
52 lines (51 loc) · 1.16 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import pluginJs from '@eslint/js';
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default [
{
files: ['src/**/*.{tsx,ts,js,jsx}'],
languageOptions: {
globals: { ...globals.browser, ...globals.node }
}
},
{
ignores: [
'node_modules/**/*',
'resources/**/*',
'dist/**/*',
'build/**/*',
'backend/**/*',
'old/**/*',
'out/**/*',
'scripts/**/*',
'public/**/*',
'coverage/**/*',
'test/**/*',
'tests/**/*',
'mocks/**/*',
'docs/**/*',
'*-config.js',
'eslint.config.mjs'
]
},
pluginJs.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
...tseslint.configs.strictTypeChecked,
{
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname,
project: ['./tsconfig.web.json', './tsconfig.node.json']
}
}
},
pluginReactConfig,
{
settings: { react: { version: 'detect' } },
rules: {
'react/react-in-jsx-scope': 'off'
}
}
];