-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
44 lines (39 loc) · 918 Bytes
/
eslint.config.mjs
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
// @ts-check
import antfu from '@antfu/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(antfu({
unocss: {
attributify: false,
},
}, {
rules: {
'curly': ['error', 'all'],
'no-console': 'warn',
'style/brace-style': ['error', '1tbs'],
'style/max-len': ['error', { code: 120 }],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/component-options-name-casing': ['error', 'kebab-case'],
'import/order': [
'error',
{
'groups': [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type',
],
'newlines-between': 'always',
'alphabetize': { order: 'asc', caseInsensitive: true },
},
],
},
}, {
files: ['**/*.md'],
rules: {
'style/max-len': 'off',
},
}))