-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.5 KB
/
.eslintrc.js
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
50
51
52
/* eslint-env node */
module.exports = {
root: true,
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-strongly-recommended',
'@vue/typescript/recommended',
'eslint:recommended',
'regani-ts'
],
rules: {
'vue/component-api-style': [ 'error',
[ 'script-setup', 'composition' ]
],
'vue/component-tags-order': [ 'error', { order: [ 'template', 'script', 'style' ] } ],
'vue/no-v-html': 0,
'vue/html-indent': [ 'error', 4 ],
'vue/script-indent': [ 'error', 4, { switchCase: 1 } ],
'vue/v-on-event-hyphenation': 'off',
'vue/multi-word-component-names': 'off',
'vue/html-self-closing': [ 'error', {
html: {
void: 'never',
normal: 'always',
component: 'always'
},
svg: 'always',
math: 'always'
} ],
'vue/attributes-order': [ 'error', {
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
[ 'UNIQUE', 'SLOT' ],
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT'
],
alphabetical: false
} ]
},
env: {
'vue/setup-compiler-macros': true,
es2021: true,
node: true
}
}