-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
53 lines (51 loc) · 1.2 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
43
44
45
46
47
48
49
50
51
52
53
import config from '@antfu/eslint-config'
export default config(
{
stylistic: false,
typescript: {
tsconfigPath: 'tsconfig.json',
overrides: {
'ts/no-namespace': 'off',
'ts/no-empty-object-type': 'off',
'ts/method-signature-style': 'off',
'ts/no-use-before-define': 'off',
'ts/ban-ts-comment': 'off',
'ts/no-wrapper-object-types': 'off',
'ts/no-unsafe-function-type': 'off',
'import/no-mutable-exports': 'off',
'perfectionist/sort-imports': 'off',
'perfectionist/sort-named-imports': 'off'
}
},
javascript: {
overrides: {
'unused-imports/no-unused-vars': 'off'
}
},
vue: {
overrides: {
'vue/no-v-model-argument': 'off'
}
},
test: {
overrides: {
'test/consistent-test-it': 'off'
}
}
},
// test, script and config files
{
files: [
'packages/*/tests/**/*.{js,ts,tsx}',
'vitest.config.ts',
'eslint.config.mjs',
'vitest.workspace.ts',
'website/vite.config.ts',
'scripts/**/*.{js,ts}'
],
rules: {
'no-console': 'off',
'ts/strict-boolean-expressions': 'off'
}
}
)