-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
51 lines (50 loc) · 1.26 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
import antfu from '@antfu/eslint-config'
export default antfu(
{
formatters: true,
ignores: [
'**/types',
'**/cache',
'**/dist',
'**/.temp',
'**/*.svg',
'**/*.md',
],
},
{
rules: {
'vue/no-deprecated-functional-template': 'off',
'vue/one-component-per-file': 'off',
'vue/no-template-shadow': 'off',
'vue/require-prop-types': 'off',
'spaced-comment': ['error', 'always', { exceptions: ['#__PURE__'] }],
'ts/ban-types': 'off',
'node/no-callback-literal': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'node/prefer-global/process': 'off',
'ts/unified-signatures': 'off',
'ts/no-dynamic-delete': 'off',
},
},
{
files: [
'**/*.demo.vue',
],
rules: {
'no-alert': 'off',
'no-console': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'no-restricted-imports': 'off',
'vue/no-unused-vars': 'off',
'vue/no-unused-refs': 'off',
'vue/require-v-for-key': 'off',
'ts/no-unused-vars': 'off',
'ts/no-redeclare': 'off',
'unused-imports/no-unused-vars': 'off',
},
},
)