-
Notifications
You must be signed in to change notification settings - Fork 241
/
.eslintrc.js
48 lines (48 loc) · 1.45 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
module.exports = {
extends: [
'airbnb-base',
'plugin:vue/recommended',
],
rules: {
'indent': ['error', 4],
'no-undef': 'off',
'max-len': 'off',
'no-console': 'off',
'one-var': ['error', { 'var': 'consecutive', 'let': 'consecutive', 'const': 'consecutive' }],
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
'quote-props': ['error', 'as-needed', { 'unnecessary': false }],
'object-curly-newline': ['error', {
'consistent': true,
'multiline': true,
'minProperties': 8,
}],
'no-param-reassign': ['error', { 'props': false }],
'vue/html-indent': ['error', 4],
'vue/max-attributes-per-line': ['error', {
'singleline': 5,
'multiline': {
'max': 1,
'allowFirstLine': false,
},
}],
'vue/html-self-closing': ['error', {
'html': {
'void': 'never',
'normal': 'any',
'component': 'any',
},
'svg': 'any',
'math': 'always',
}],
'vue/singleline-html-element-content-newline': ['off'],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
},
overrides: [
{
files: ['*.vue', '**/*.vue'],
rules: {
indent: 'off',
},
},
],
};