-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
39 lines (38 loc) · 1.11 KB
/
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
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
export default createConfigForNuxt({}).override('nuxt/vue/rules', {
rules: {
'vue/html-self-closing': [
'warn',
{
html: {
normal: 'always',
void: 'always'
}
}
],
'vue/attribute-hyphenation': ['error', 'never'],
'vue/v-on-event-hyphenation': ['error', 'never'],
'vue/attributes-order': [
'error',
{
order: [
'DEFINITION',
'CONDITIONALS',
'LIST_RENDERING',
'UNIQUE',
'RENDER_MODIFIERS',
'GLOBAL',
'SLOT',
'EVENTS',
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'CONTENT',
'ATTR_DYNAMIC',
'ATTR_SHORTHAND_BOOL',
'ATTR_STATIC'
],
alphabetical: false
}
]
}
})