forked from zhangsanplus/ares-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
36 lines (35 loc) · 904 Bytes
/
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
// @ts-check
import antfu from '@antfu/eslint-config'
export default antfu(
{
ignores: [
'dist-*',
'.history',
],
},
{
rules: {
'curly': 0,
'no-console': 0,
'style/brace-style': 0,
'antfu/if-newline': 0,
'vue/block-order': [2, { order: ['template', 'script', 'style'] }],
'vue/component-name-in-template-casing': [2, 'kebab-case', { registeredComponentsOnly: false }],
'import/order': [2, {
alphabetize: { order: 'asc', caseInsensitive: false },
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
pathGroupsExcludedImportTypes: ['type'],
pathGroups: [
{
pattern: '@/**',
group: 'internal',
},
{
pattern: '~/**',
group: 'internal',
},
],
}],
},
},
)