-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
34 lines (32 loc) · 927 Bytes
/
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
import { baseConfig } from './configs/base.mjs';
import { javaScriptConfig } from './configs/js.mjs';
import { supportedExtensions } from './utils/extensions.mjs';
import { supportedFileTypes } from './utils/fileTypes.mjs';
const config = [
baseConfig,
javaScriptConfig,
{
files: [supportedFileTypes.js],
settings: {
'import/extensions': supportedExtensions.js,
'import/parsers': {
'@typescript-eslint/parser': [...supportedExtensions.ts, ...supportedExtensions.tsx],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
node: {
paths: ['src'],
extensions: supportedExtensions.js,
},
},
},
},
{
// 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;