-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
49 lines (48 loc) · 1.29 KB
/
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
46
47
48
49
import antfu from '@antfu/eslint-config';
export default antfu(
{
stylistic: {
semi: true,
},
vue: {
overrides: {
'vue/block-order': ['error', {
order: ['template', 'script', 'style'],
}],
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never',
}],
'vue/html-self-closing': ['error', {
html: {
component: 'always',
normal: 'never',
void: 'always',
},
}],
'vue/max-attributes-per-line': ['error', {
multiline: 1,
singleline: 1,
}],
'vue/define-macros-order': ['error', {
order: ['defineOptions', 'defineProps', 'defineEmits', 'defineSlots'],
}],
},
},
},
{
rules: {
'curly': ['error', 'all'],
'no-console': ['error', { allow: ['error', 'groupCollapsed', 'groupEnd', 'info', 'trace', 'warn'] }],
'no-else-return': ['error', { allowElseIf: false }],
'node/prefer-global/process': ['error', 'always'],
'style/brace-style': ['error', '1tbs'],
'style/max-len': ['warn', {
code: 200,
ignoreRegExpLiterals: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
}],
},
},
);