-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvue.mjs
49 lines (46 loc) · 1.21 KB
/
vue.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
45
46
47
48
49
import pluginVue from 'eslint-plugin-vue'
import { VUE_FILES } from '../constants.mjs'
export default [
...pluginVue.configs['flat/recommended'],
{
files: [VUE_FILES],
rules: {
'vue/attributes-order': [
1,
{
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
['UNIQUE', 'SLOT'],
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT',
],
alphabetical: true,
},
],
'vue/no-v-html': 0,
'vue/prefer-separate-static-class': 1,
'vue/prefer-true-attribute-shorthand': [1, 'always'],
'vue/no-useless-v-bind': 1,
'vue/no-unused-refs': 1,
'vue/no-unused-emit-declarations': 1,
'vue/no-unused-properties': 1,
'vue/define-emits-declaration': [1, 'type-literal'],
'vue/v-for-delimiter-style': [1, 'of'],
'vue/attribute-hyphenation': [1, 'never'],
'vue/v-on-event-hyphenation': [1, 'never'],
'vue/block-order': [
1,
{
order: ['script', 'template', 'style'],
},
],
},
},
]