-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
43 lines (38 loc) · 900 Bytes
/
eslint.config.mjs
File metadata and controls
43 lines (38 loc) · 900 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// @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'],
'perfectionist/sort-imports': [
'error',
{
groups: [
'value-builtin',
'value-external',
'value-internal',
'value-parent',
'value-sibling',
'value-index',
'type-import',
'unknown',
],
newlinesBetween: 1,
},
],
},
}, {
files: ['**/*.md'],
rules: {
'style/max-len': 'off',
},
}))