-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
79 lines (62 loc) · 2.01 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
75
76
77
78
79
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
"indent": ["error", 4],
"comma-dangle": ["error", "always-multiline"],
"no-multiple-empty-lines": ["error", { "max": 6, "maxEOF": 2 }],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"vue/html-indent": ["error", 4, {
"attribute": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}],
"vue/html-self-closing": ["error", {
"html": {
"void": "never",
"normal": "any",
"component": "any"
},
"svg": "always",
"math": "always"
}],
"vue/html-closing-bracket-newline": ["error", {
"singleline": "never",
"multiline": "never"
}],
"vue/max-attributes-per-line": ["error", {
"singleline": 20,
"multiline": {
"max": 20,
"allowFirstLine": true
}
}],
"vue/name-property-casing": ["off", "PascalCase"],
"vue/singleline-html-element-content-newline": ["off", {
"ignoreWhenNoAttributes": true,
"ignoreWhenEmpty": true,
"ignores": ["pre", "textarea"]
}],
"vue/multiline-html-element-content-newline": ["off", {
"ignoreWhenEmpty": true,
"ignores": ["pre", "textarea"]
}],
"vue/multiline-html-element-content-newline": ["off", {
"ignoreWhenEmpty": true,
"ignores": ["pre", "textarea"]
}],
"vue/no-v-html": 'off',
"vue/require-default-prop": 'off',
},
parserOptions: {
parser: 'babel-eslint'
}
}