-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
74 lines (74 loc) · 1.52 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
module.exports = {
env: {
node: true,
},
extends: ['plugin:vue/essential'],
settings: {
'prettier-vue': {
SFCBlocks: {
style: false,
template: false,
},
},
},
rules: {
'no-control-regex': 0,
'no-unused-vars': 1,
'no-var': 2,
'no-tabs': 0,
curly: [1, 'multi-line', 'consistent'],
'vue/attributes-order': 1,
'vue/attribute-hyphenation': 1,
'vue/html-end-tags': 1,
'vue/html-indent': [
1,
'tab',
{
alignAttributesVertically: false,
},
],
'vue/max-attributes-per-line': [
1,
{
singleline: 5,
multiline: {
max: 1,
allowFirstLine: false,
},
},
],
'vue/no-v-model-argument': 1,
'vue/no-parsing-error': 1,
'vue/valid-v-for': 1,
'vue/require-v-for-key': 1,
'vue/no-unused-vars': 1,
'vue/no-mutating-props': 'off',
'vue/mustache-interpolation-spacing': 1,
'vue/name-property-casing': 1,
'vue/no-multi-spaces': 1,
'vue/require-default-prop': 1,
'vue/require-prop-types': 1,
'vue/v-bind-style': 1,
'vue/v-on-style': 1,
'vue/html-quotes': 1,
'vue/no-confusing-v-for-v-if': 1,
'vue/order-in-components': 1,
'vue/this-in-template': 1,
'vue/html-closing-bracket-newline': [
1,
{
singleline: 'never',
multiline: 'always',
},
],
'vue/html-closing-bracket-spacing': 1,
'vue/prop-name-casing': 1,
'vue/script-indent': 'off',
'vue/no-side-effects-in-computed-properties': 'off',
'vue/return-in-computed-property': 'off',
'vue/no-use-v-if-with-v-for': 'off',
},
parserOptions: {
parser: 'babel-eslint',
},
}