-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.yaml
274 lines (274 loc) · 4.23 KB
/
.eslintrc.yaml
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
root: true
parser: vue-eslint-parser
extends:
- 'plugin:vue/essential'
- 'eslint:recommended'
env:
es6: true
node: true
browser: true
parserOptions:
parser: babel-eslint
sourceType: module
ecmaVersion: 2018
ecmaFeatures:
globalReturn: false
modules: true
experimentalObjectRestSpread: true
globals:
BigInt: true
rules:
require-yield:
- off
no-extra-parens:
- off
no-prototype-builtins:
- error
no-template-curly-in-string:
- error
array-callback-return:
- error
block-scoped-var:
- error
complexity:
- warn
curly:
- error
default-case:
- error
dot-location:
- error
- property
dot-notation:
- error
eqeqeq:
- error
no-alert:
- error
no-caller:
- error
no-else-return:
- error
no-empty-function:
- error
no-eq-null:
- error
no-eval:
- error
no-extend-native:
- error
no-extra-bind:
- error
no-floating-decimal:
- error
no-labels:
- error
no-loop-func:
- error
no-multi-spaces:
- error
no-multi-str:
- error
no-new:
- error
no-proto:
- error
no-restricted-properties:
- error
no-sequences:
- error
no-throw-literal:
- error
no-unused-expressions:
- error
no-useless-call:
- error
no-useless-return:
- error
yoda:
- error
strict:
- error
no-undef-init:
- error
no-unused-vars:
- error
handle-callback-err:
- error
array-bracket-newline:
- error
-
multiline: true
array-bracket-spacing:
- error
array-element-newline:
- off
-
multiline: true
brace-style:
- error
- stroustrup
camelcase:
- error
comma-dangle:
- error
- always-multiline
comma-spacing:
- error
comma-style:
- error
computed-property-spacing:
- error
eol-last:
- error
func-call-spacing:
- error
id-length:
- error
-
min: 2
exceptions:
- i
- x
- y
- e
- a
- b
id-match:
- error
- "^(([A-Za-z0-9]+){2,})|([A-Z][A-Z_0-9]+)|x|y|a|b|i|e$"
-
properties: false
onlyDeclarations: true
indent:
- error
- 2
-
SwitchCase: 1
key-spacing:
- error
keyword-spacing:
- error
max-statements-per-line:
- error
newline-per-chained-call:
- error
no-bitwise:
- error
no-multi-assign:
- error
no-trailing-spaces:
- error
no-whitespace-before-property:
- error
no-multiple-empty-lines:
- error
-
max: 2
maxEOF: 1
one-var-declaration-per-line:
- error
quote-props:
- error
- as-needed
quotes:
- error
- single
semi:
- error
- never
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- always
spaced-comment:
- error
- always
arrow-body-style:
- error
- as-needed
arrow-spacing:
- error
generator-star-spacing:
- error
no-var:
- error
no-console:
- off
no-ex-assign:
- off
lines-between-class-members:
- error
- always
-
exceptAfterSingleLine: true
no-plusplus:
- error
implicit-arrow-linebreak:
- error
- beside
padding-line-between-statements:
- error
-
blankLine: always
prev:
- const
- let
- var
next: '*'
-
blankLine: any
prev:
- const
- let
- var
next:
- const
- let
- var
operator-linebreak:
- error
- after
-
overrides:
'?': before
':': before
'+': before
object-property-newline:
- error
-
allowAllPropertiesOnSameLine: true
no-magic-numbers:
- error
-
ignore:
- -1
- 0
- 1
- 2
- 10
ignoreArrayIndexes: true
enforceConst: true
detectObjects: false
object-curly-spacing:
- error
- always
# vue/component-name-in-template-casing:
# - error
# - kebab-case
vue/max-attributes-per-line:
- error
-
singleline: 3
vue/html-self-closing:
- error
-
html:
void: always
normal: never
component: always
svg: always
math: always
vue/no-v-html: off