-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
50 lines (44 loc) · 1.09 KB
/
Copy patheslint.config.js
File metadata and controls
50 lines (44 loc) · 1.09 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
import antfu from '@antfu/eslint-config'
export default antfu(
{
formatters: true,
// Or customize the stylistic rules
stylistic: {
indent: 2, // 4, or 'tab'
quotes: 'single', // or 'double'
},
vue: true,
typescript: true,
ignores: [
'dist',
'node_modules',
'public',
],
},
{
// Without `files`, they are general rules for all files
rules: {
'style/semi': ['error', 'never'],
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'vue/no-v-text-v-html-on-component': 'off',
'no-console': 'off',
'antfu/top-level-function': 'off',
'unused-imports/no-unused-vars': 'off',
'node/prefer-global/process': 'off',
'ts/no-invalid-this': 'off',
'ts/consistent-type-imports': 'off',
'ts/ban-types': 'off',
'vue/block-order': ['error', {
order: ['template', 'script', 'style'],
}],
'vue/max-attributes-per-line': ['warn', {
singleline: {
max: 1,
},
multiline: {
max: 1,
},
}],
},
},
)