-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy patheslint.config.mjs
More file actions
57 lines (56 loc) · 1.32 KB
/
eslint.config.mjs
File metadata and controls
57 lines (56 loc) · 1.32 KB
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
import antfu from '@antfu/eslint-config'
import harlanzw from 'eslint-plugin-harlanzw'
export default antfu(
{
type: 'lib',
ignores: [
'CLAUDE.md',
'.claude/**',
'test/fixtures/**',
'playground/**',
'client/**',
'examples/**',
],
rules: {
'no-use-before-define': 'off',
'node/prefer-global/process': 'off',
'node/prefer-global/buffer': 'off',
'ts/explicit-function-return-type': 'off',
'ts/ban-ts-comment': ['error', {
'ts-expect-error': 'allow-with-description',
'ts-ignore': 'allow-with-description',
}],
'ts/no-namespace': 'off',
'ts/no-empty-object-type': 'off',
'no-cond-assign': 'off',
'vue/valid-template-root': 'off',
},
},
{
files: ['**/test/**/*.ts', '**/test/**/*.js'],
rules: {
'ts/no-unsafe-function-type': 'off',
'no-console': 'off',
'e18e/prefer-static-regex': 'off',
},
},
...harlanzw({ link: true, nuxt: true, vue: true, content: true }),
{
rules: {
'harlanzw/vue-no-faux-composables': 'off',
'harlanzw/vue-no-nested-reactivity': 'off',
},
},
{
files: ['**/registry/google-*.ts'],
rules: {
'unused-imports/no-unused-vars': 'off',
},
},
{
files: ['docs/**'],
rules: {
'no-new': 'off',
},
},
)