-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy patheslint.config.js
50 lines (48 loc) · 1.33 KB
/
eslint.config.js
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
import {
shareableConfig,
supportedFileTypes,
supportedExtensions,
} from '@alexey-koran/eslint-config';
const config = [
...shareableConfig,
{
files: [supportedFileTypes.all],
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname,
projectService: {
defaultProject: './tsconfig.json',
},
},
},
settings: {
'import/ignore': 'node_modules', // Temporary fix https://github.com/typescript-eslint/typescript-eslint/issues/9450
'import/extensions': supportedExtensions.all,
// start eslint-import-resolver-typescript
'import/parsers': {
'@typescript-eslint/parser': [...supportedExtensions.ts, ...supportedExtensions.tsx],
},
// eslint-import-resolver-webpack
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
webpack: {
config: './webpack.config.ts',
},
node: {
paths: ['src'],
extensions: supportedExtensions.all,
},
},
// end eslint-import-resolver-typescript
},
},
{
// The new config system no longer supports .eslintignore files
// https://eslint.org/blog/2022/10/eslint-v8.25.0-released/#highlights
ignores: ['build'],
},
];
export default config;