forked from ayangweb/BongoCat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.ts
More file actions
27 lines (26 loc) · 751 Bytes
/
eslint.config.ts
File metadata and controls
27 lines (26 loc) · 751 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
import antfu from '@antfu/eslint-config'
export default antfu({
formatters: true,
unocss: true,
rules: {
'antfu/if-newline': 'off',
'style/brace-style': ['error', '1tbs'],
'ts/no-use-before-define': 'off',
'unused-imports/no-unused-imports': 'error',
'perfectionist/sort-imports': 'off',
'import/order': [
'error',
{
'newlines-between': 'always',
'groups': ['type', 'builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object'],
'alphabetize': {
order: 'asc',
caseInsensitive: true,
},
},
],
'vue/attributes-order': ['error', { alphabetical: true }],
'vue/max-attributes-per-line': 'error',
},
ignores: ['**/*.toml'],
})