This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
95 lines (95 loc) · 2.05 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
module.exports = {
env: {
browser: true,
node: true
},
extends: [ 'plugin:vue/recommended' ],
parserOptions: {
parser: 'babel-eslint'
},
plugins: [ 'vue' ],
root: true,
rules: {
'array-bracket-newline': [
'error', {
minItems: 4,
multiline: true
}
],
'array-bracket-spacing': [
'error', 'always', {
arraysInArrays: false,
objectsInArrays: false
}
],
'comma-dangle': [ 'error', 'never' ],
'computed-property-spacing': [ 'error', 'always' ],
'indent': [ 'error', 'tab' ],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-extra-semi': 'error',
'no-useless-concat': 'error',
'no-tabs': [
'error', {
allowIndentationTabs: true
}
],
'object-curly-spacing': [
'error', 'always', {
arraysInObjects: true,
objectsInObjects: false
}
],
'prefer-template': 'error',
'quote-props': [ 'error','consistent-as-needed' ],
'quotes': [ 'error', 'single' ],
'semi': [ 'error', 'always' ],
'space-in-parens': [ 'error', 'always', { exceptions: [ 'empty' ] }],
'template-curly-spacing': [ 'error', 'always' ],
'template-tag-spacing': [ 'error', 'always' ],
'vue/component-name-in-template-casing': 0,
'vue/html-closing-bracket-newline': [
'error', {
multiline: 'never',
singleline: 'never'
}
],
'vue/html-closing-bracket-spacing': [
'error', {
endTag: 'never',
selfClosingTag: 'always',
startTag: 'never'
}
],
'vue/html-indent': [
'error', 'tab', {
alignAttributesVertically: false,
attribute: 1,
closeBracket: 0,
ignores: []
}
],
'vue/html-self-closing': [
'error', {
html: {
component: 'always',
normal: 'always',
void: 'always'
},
math: 'always',
svg: 'always'
}
],
'vue/max-attributes-per-line': [
'error', {
multiline: {
allowFirstLine: false,
max: 1
},
singleline: 6
}
],
'vue/script-indent': [ 'error', 'tab' ],
'vue/singleline-html-element-content-newline': 0
}
};