-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
50 lines (47 loc) · 1.14 KB
/
eslint.config.js
File metadata and controls
50 lines (47 loc) · 1.14 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({
typescript: true,
markdown: true,
yaml: true,
rules: {
'curly': 'off',
'no-alert': 'off',
'no-console': 'off',
'no-unused-vars': 'warn',
'node/prefer-global/process': 'off',
'antfu/if-newline': 'off',
'antfu/no-top-level-await': 'off',
'unused-imports/no-unused-imports': 'warn',
'eslint-comments/no-unlimited-disable': 'off',
'perfectionist/sort-imports': ['error', {
groups: [
'builtin',
'external',
['internal', 'internal-type'],
['parent', 'sibling', 'index'],
'type',
['parent-type', 'sibling-type', 'index-type'],
'side-effect',
'object',
'unknown',
],
newlinesBetween: 'ignore',
order: 'asc',
type: 'natural',
}],
},
vue: {
overrides: {
'vue/block-order': ['warn', {
order: [['template', 'script'], 'style'],
}],
'vue/custom-event-name-casing': ['error', 'kebab-case'],
},
},
stylistic: {
overrides: {
'style/brace-style': ['warn', '1tbs'],
'style/arrow-parens': 'off',
},
},
})