-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
108 lines (104 loc) · 1.98 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
96
97
98
99
100
101
102
103
104
105
106
107
108
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/strongly-recommended', 'eslint:recommended'],
rules: {
'no-console': 'off',
'no-debugger': 'off',
eqeqeq: 1,
'no-extra-parens': 2,
'valid-jsdoc': 2,
'no-multi-spaces': 2,
'array-bracket-spacing': [
2,
'never'
],
'block-spacing': 2,
'comma-style': 2,
indent: [
2,
2
],
'no-trailing-spaces': 2,
'object-curly-spacing': [
2,
'always'
],
'require-jsdoc': [
1,
{
require: {
FunctionDeclaration: true,
MethodDefinition: false,
ClassDeclaration: false,
ArrowFunctionExpression: false,
FunctionExpression: false
}
}
],
semi: [
2,
'never'
],
'semi-spacing': 2,
'comma-spacing': 2,
'spaced-comment': [
2,
'always',
{
markers: [
'/',
'//'
]
}
],
'space-before-function-paren': [
2,
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}
],
'arrow-spacing': 2,
'no-var': 2,
quotes: [
2,
'single'
],
'newline-per-chained-call': [
2
],
'multiline-ternary': [
2,
'always-multiline'
],
'space-infix-ops': 2,
'key-spacing': 2,
'space-before-blocks': 2,
'keyword-spacing': [
2,
{
before: true
}
],
'vue/max-attributes-per-line': 'off',
'vue/component-name-in-template-casing': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/no-v-html': 'off',
'vue/html-self-closing': 'off',
'vue/html-indent': ['error', 2, {
'attribute': 1,
'baseIndent': 1,
'closeBracket': 0,
'alignAttributesVertically': false,
'ignores': []
}],
},
parserOptions: {
parser: 'babel-eslint'
}
}