-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
45 lines (43 loc) · 975 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
44
45
/* eslint-disable node/prefer-global/process */
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: {
indent: 2,
quotes: 'single',
},
typescript: true,
vue: true,
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/no-deprecated-slot-attribute': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case', {
registeredComponentsOnly: false,
ignores: [],
}],
},
ignores: [
'README.md',
'.DS_Store',
'node_modules',
'coverage',
'dist',
'ios',
'android',
'.env.local',
'.env.*.local',
'npm-debug.log*',
'yarn-debug.log*',
'yarn-error.log*',
'pnpm-debug.log*',
'.idea',
'.vscode',
'*.suo',
'*.ntvs*',
'*.njsproj',
'*.sln',
'*.sw?',
'tests/**',
],
})