-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy patheslint.config.js
43 lines (42 loc) · 853 Bytes
/
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
import js from '@eslint/js';
import prettier from 'eslint-plugin-prettier';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import node from 'eslint-plugin-n';
export default [
js.configs.recommended,
node.configs['flat/recommended-module'],
prettierRecommended,
{
ignores: [
'packages/tsconfck/tests/fixtures/parse/invalid/**/*',
'packages/tsconfck/tests/fixtures/find-all/recursive-symlink/**/*',
'packages/tsconfck/tests/snapshots/**/*'
]
},
{
plugins: {
node,
prettier
}
},
{
languageOptions: {
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2022
}
},
rules: {
'no-debugger': ['error']
}
},
{
files: ['**/tests/fixtures/**/*.js', '**/tests/fixtures/**/*.ts'],
rules: {
'no-unused-vars': 'off'
}
}
];