-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy patheslint.config.js
More file actions
36 lines (35 loc) · 896 Bytes
/
eslint.config.js
File metadata and controls
36 lines (35 loc) · 896 Bytes
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
// eslint.config.js
import antfu from '@antfu/eslint-config';
export default await antfu({
// TODO: 使用 ignore 代替 cli 命令中的配置
stylistic: {
indent: 4,
quotes: 'single',
semi: 'always',
},
typescript: true,
vue: true,
rules: {
'curly': ['error', 'multi-line'],
'vue/block-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'style/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
multilineDetection: 'brackets',
},
],
},
});