-
-
Notifications
You must be signed in to change notification settings - Fork 521
/
Copy patheslint.config.mjs
58 lines (55 loc) · 1017 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// eslint.config.mjs
import antfu from '@antfu/eslint-config'
export default antfu({
ignores: [
'node_modules/',
'dist/',
'generated/',
'!.*',
'schema.graphql',
'.test-todo/',
'**/types/test/',
],
rules: {
'ts/no-use-before-define': 'warn',
'unused-imports/no-unused-vars': 'warn',
'accessor-pairs': 'off',
},
}, {
files: [
'packages/docs/**',
],
rules: {
'no-dupe-keys': 'off',
'no-new': 'off',
'no-console': 'off',
},
}, {
files: [
'packages/test-*/**',
'**/*.test.*',
],
rules: {
'antfu/no-top-level-await': 'off',
'no-console': 'off',
'unused-imports/no-unused-vars': 'off',
'node/prefer-global/process': 'off',
'import/no-mutable-exports': 'off',
},
languageOptions: {
globals: {
cy: false,
expect: false,
describe: false,
it: false,
before: false,
},
},
}, {
files: [
'**/tests/types/**',
],
rules: {
'ts/no-unused-expressions': 'off',
},
})