-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patheslint.config.js
57 lines (56 loc) · 1.27 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
50
51
52
53
54
55
56
57
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: true,
unocss: {
overrides: {
'unocss/order': 'error',
'unocss/order-attributify': 'error',
},
},
typescript: {
tsConfigPath: './tsconfig.json',
},
vue: {
overrides: {
'vue/block-order': ['error', {
order: ['script', 'template', 'style'],
}],
'vue/singleline-html-element-content-newline': ['error', {
externalIgnores: ['ArchiveLink'],
}],
},
},
rules: {
'no-console': 'off',
'antfu/top-level-function': 'off',
'node/prefer-global/process': 'off',
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'perfectionist/sort-imports': ['error', {
groups: [
'type',
['builtin', 'external'],
'icons',
'internal-type',
'internal',
['parent-type', 'sibling-type', 'index-type'],
['parent', 'sibling', 'index'],
'side-effect',
'object',
'unknown',
],
newlinesBetween: 'always',
order: 'asc',
type: 'natural',
internalPattern: ['#**'],
customGroups: {
value: {
icons: ['~icons/**'],
},
},
}],
},
formatters: {
css: true,
html: true,
},
})