-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
42 lines (37 loc) · 1.05 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
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
// If ignores is used without any other keys in the configuration object,
// then the patterns act as global ignores.
{
// An array of glob patterns indicating the files that the configuration
// object should not apply to. If not specified, the configuration
// object applies to all files matched by files.
ignores: [
'build/**/*.*',
'/node_modules',
'/dist',
'.gitignore',
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
// An array of glob patterns indicating the files that the configuration
// object should apply to. If not specified, the configuration object
// applies to all files matched by any other configuration object.
files: [
'./src/**/*.ts',
'./src/**/*.tsx',
"./src/**/*.js",
],
rules: {
'@typescript-eslint/no-unused-vars': [
"warn",
{
"argsIgnorePattern": "^_"
}
]
}
}
);