-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
591 lines (591 loc) · 10.8 KB
/
.eslintrc.yml
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
# ESLint v7.3.1
parser: babel-eslint
parserOptions:
ecmaVersion: 11
ecmaFeatures:
impliedStrict: true
sourceType: module
overrides:
- files:
- '*.test.js'
rules:
max-classes-per-file: 'off'
max-nested-callbacks: 'off'
no-unused-expressions: 'off'
env:
browser: false
es6: true
mocha: true
node: false
rules:
id-blacklist:
- error
no-restricted-exports:
- error
no-restricted-globals:
- error
no-restricted-imports:
- error
no-restricted-syntax:
- error
accessor-pairs: warn
array-bracket-newline: warn
array-bracket-spacing:
- error
- never
- singleValue: false
objectsInArrays: false
arraysInArrays: false
array-callback-return: warn
array-element-newline: 'off'
arrow-body-style:
- warn
- as-needed
arrow-parens:
- error
- as-needed
arrow-spacing:
- error
- before: true
after: true
block-scoped-var: warn
block-spacing:
- error
- always
brace-style:
- warn
- 1tbs
- allowSingleLine: true
camelcase:
- warn
- properties: always
capitalized-comments: 'off'
class-methods-use-this: warn
comma-dangle:
- error
- always-multiline
comma-spacing:
- error
- before: false
after: true
comma-style:
- error
- last
complexity: 'off'
computed-property-spacing:
- error
- never
consistent-return: 'off'
consistent-this: 'off'
constructor-super: error
curly:
- error
- multi-line
- consistent
default-case: error
default-case-last: error
default-param-last: error
dot-location:
- error
- property
dot-notation:
- error
- allowKeywords: true
eqeqeq:
- warn
- always
eol-last: error
for-direction: error
func-call-spacing:
- error
- never
func-name-matching:
- error
- always
func-names:
- warn
- as-needed
func-style:
- off
function-call-argument-newline:
- off
function-paren-newline:
- error
- multiline
generator-star-spacing:
- error
- before: false
after: true
getter-return:
- error
- allowImplicit: true
grouped-accessor-pairs:
- warn
- getBeforeSet
guard-for-in: warn
id-length: 'off'
id-match: 'off'
implicit-arrow-linebreak:
- error
- beside
indent:
- error
- 2
- SwitchCase: 1
MemberExpression: 'off'
init-declarations:
- 'off'
key-spacing:
- error
- beforeColon: false
afterColon: true
mode: minimum
align: value
keyword-spacing:
- error
- before: true
after: true
line-comment-position: 'off'
linebreak-style:
- 'off'
lines-around-comment:
- warn
- beforeBlockComment: true
afterBlockComment: false
beforeLineComment: false
afterLineComment: false
allowBlockStart: true
allowBlockEnd: false
allowObjectStart: false
allowObjectEnd: false
allowArrayStart: false
allowArrayEnd: false
lines-between-class-members:
- warn
- always
- exceptAfterSingleLine: true
max-classes-per-file:
- warn
- 2
max-depth: warn
max-len:
- warn
- code: 120
ignoreComments: true
ignoreStrings: true
ignoreTemplateLiterals: true
ignoreUrls: true
max-lines: 'off'
max-lines-per-function: off
max-nested-callbacks:
- warn
- 2
max-params:
- warn
- 4
max-statements:
- warn
- 20
max-statements-per-line:
- warn
- max: 2
multiline-comment-style: 'off'
multiline-ternary: 'off'
new-cap:
- warn
- newIsCap: true
capIsNew: true
properties: true
new-parens: 'off'
newline-per-chained-call:
- warn
- ignoreChainWithDepth: 3
no-alert: warn
no-array-constructor: warn
no-async-promise-executor: error
no-await-in-loop: error
no-bitwise: warn
no-caller: error
no-case-declarations: error
no-catch-shadow: error
no-class-assign: error
no-compare-neg-zero: error
no-cond-assign:
- error
- except-parens
no-confusing-arrow:
- error
- allowParens: true
no-console:
- warn
- allow:
- error
- info
- time
- timeEnd
- warn
no-const-assign: error
no-constant-condition:
- error
- checkLoops: true
no-continue: warn
no-control-regex: warn
no-constructor-return: warn
no-delete-var: error
no-div-regex: off
no-debugger: error
no-dupe-args: error
no-dupe-class-members: error
no-dupe-else-if: error
no-dupe-keys: error
no-duplicate-case: error
no-duplicate-imports:
- error
- includeExports: true
no-else-return: error
no-empty:
- error
- allowEmptyCatch: false
no-empty-character-class: error
no-empty-function: error
no-empty-pattern: error
no-eq-null: error
no-eval: error
no-ex-assign: error
no-extend-native: error
no-extra-bind: error
no-extra-boolean-cast: error
no-extra-label: warn
no-extra-parens:
- warn
- all
- nestedBinaryExpressions: false
enforceForArrowConditionals: false
no-extra-semi: error
no-fallthrough:
- error
- commentPattern: fallthrough
no-floating-decimal: error
no-func-assign: error
no-global-assign: error
no-implicit-coercion: warn
no-implicit-globals: error
no-implied-eval: error
no-import-assign: error
no-inline-comments: 'off'
no-inner-declarations:
- error
- functions
no-invalid-regexp: error
no-invalid-this: warn
no-irregular-whitespace:
- warn
- skipStrings: false
skipRegExps: false
skipComments: true
skipTemplates: false
no-iterator: error
no-label-var: error
no-labels: 'off'
no-lone-blocks: error
no-lonely-if: warn
no-loop-func: error
no-loss-of-precision: error
no-magic-numbers:
- warn
- ignoreArrayIndexes: true
ignore:
- -1
- 0
- 1
- 2
- 3
- 10
- 60
- 200
- 201
- 204
- 207
- 302
- 304
- 400
- 401
- 403
- 404
- 405
- 408
- 409
- 410
- 412
- 413
- 422
- 429
- 449
- 500
- 503
- 1000
- 3000
no-misleading-character-class: error
no-mixed-operators:
- warn
- allowSamePrecedence: true
no-mixed-spaces-and-tabs: error
no-multi-assign: warn
no-multi-spaces:
- error
- ignoreEOLComments: true
exceptions:
AssignmentExpression: true
AssignmentPattern: true
IfStatement: true
ImportDeclaration: true
ImportSpecifier: true
VariableDeclaration: true
VariableDeclarator: true
no-multi-str: error
no-multiple-empty-lines:
- warn
- max: 2
no-negated-condition: warn
no-nested-ternary: warn
no-new: warn
no-new-func: error
no-new-object: warn
no-new-symbol: error
no-new-wrappers: off
no-obj-calls: error
no-octal: error
no-octal-escape: error
no-param-reassign:
- error
- props: true
no-plusplus: 'off'
no-promise-executor-return: warn
no-proto: error
no-prototype-builtins: 'off'
no-redeclare: error
no-regex-spaces: error
no-return-assign:
- error
- always
no-return-await: error
no-script-url: error
no-self-assign: error
no-self-compare: error
no-sequences: error
no-setter-return: error
no-shadow:
- warn
- builtinGlobals: true
hoist: all
allow:
- err
- event
- resolve
- reject
no-shadow-restricted-names: error
no-sparse-arrays: warn
no-sync: error
no-tabs: warn
no-template-curly-in-string: error
no-ternary: 'off'
no-this-before-super: error
no-throw-literal: error
no-trailing-spaces:
- error
- skipBlankLines: false
no-undef:
- error
- typeof: true
no-undef-init: error
no-undefined: off
no-underscore-dangle:
- warn
- allow:
- __dirname
- _ts
- _etag
no-unexpected-multiline: error
no-unmodified-loop-condition: warn
no-unneeded-ternary:
- error
- defaultAssignment: false
no-unreachable: error
no-unreachable-loop: error
no-unsafe-finally: warn
no-unsafe-negation: error
no-unused-expressions: error
no-unused-labels: error
no-unused-vars: error
no-use-before-define:
- warn
- classes: false
functions: false
no-useless-backreference: error
no-useless-call: error
no-useless-catch: error
no-useless-concat: error
no-useless-computed-key: error
no-useless-constructor: error
no-useless-escape: error
no-useless-rename: error
no-useless-return: error
no-var: warn
no-void: off
no-warning-comments: warn
no-whitespace-before-property: error
no-with: warn
nonblock-statement-body-position:
- error
- beside
object-curly-newline:
- warn
- ObjectExpression:
consistent: true
minProperties: 4
ObjectPattern:
multiline: true
object-curly-spacing:
- error
- always
- objectsInObjects: true
arraysInObjects: true
object-property-newline:
- warn
- allowMultiplePropertiesPerLine: true
object-shorthand:
- warn
- always
one-var:
- error
- never
one-var-declaration-per-line: 'off'
operator-assignment:
- error
- always
operator-linebreak:
- error
- before
- overrides:
"?": ignore
":": ignore
padded-blocks: 'off'
padding-line-between-statements: 'off'
prefer-arrow-callback:
- error
- allowNamedFunctions: true
allowUnboundThis: true
prefer-const:
- error
- destructuring: any
ignoreReadBeforeAssign: false
prefer-destructuring:
- warn
- array: false
object: true
- enforceForRenamedProperties: false
prefer-exponentiation-operator: error
prefer-named-capture-group: warn
prefer-numeric-literals: warn
prefer-object-spread: off
prefer-regex-literals: off
prefer-promise-reject-errors:
- warn
- allowEmptyReject: true
prefer-rest-params: error
prefer-spread: error
prefer-template: warn
quote-props:
- error
- as-needed
- keywords: false
unnecessary: true
quotes:
- error
- single
- avoidEscape: true
allowTemplateLiterals: true
radix:
- error
- always
require-atomic-updates: error
require-await: error
require-unicode-regexp: error
require-yield: error
rest-spread-spacing:
- error
- never
semi:
- error
- always
semi-spacing:
- error
- before: false
after: true
semi-style:
- error
- last
sort-imports:
- warn
- ignoreCase: true
memberSyntaxSortOrder:
- none
- all
- single
- multiple
sort-keys:
- warn
- asc
- caseSensitive: false
natural: true
sort-vars:
- warn
- ignoreCase: true
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- anonymous: never
named: never
space-in-parens:
- error
- never
space-infix-ops: error
space-unary-ops:
- error
- words: true
nonwords: false
spaced-comment:
- error
- always
- markers:
- "*"
switch-colon-spacing:
- error
- after: true
before: false
symbol-description: error
template-curly-spacing:
- warn
- never
template-tag-spacing:
- error
- never
unicode-bom:
- error
- never
use-isnan: error
valid-typeof: error
vars-on-top: warn
wrap-iife:
- off
- outside
wrap-regex: 'off'
yield-star-spacing:
- error
- after
yoda:
- error
- never
- onlyEquality: true