-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.base.yaml
754 lines (754 loc) · 14 KB
/
eslint.base.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
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
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
---
rules:
accessor-pairs: 'off'
array-callback-return: warn
block-scoped-var: error
complexity:
- 'off'
- 11
class-methods-use-this: warn
consistent-return: 'off'
curly:
- error
- multi-line
default-case: warn
dot-notation:
- error
- allowKeywords: true
dot-location:
- error
- property
eqeqeq:
- error
- always
- 'null': ignore
guard-for-in: 'off'
no-alert: warn
no-caller: error
no-case-declarations: error
no-div-regex: 'off'
no-else-return:
- error
- allowElseIf: false
no-empty-function:
- error
- allow:
- arrowFunctions
- functions
- methods
no-empty-pattern: error
no-eq-null: 'off'
no-eval: error
no-extend-native: error
no-extra-bind: error
no-extra-label: error
no-fallthrough: error
no-floating-decimal: error
no-global-assign:
- error
- exceptions: []
no-native-reassign: 'off'
no-implicit-coercion:
- 'off'
- boolean: false
number: true
string: true
allow: []
no-implicit-globals: 'off'
no-implied-eval: error
no-invalid-this: 'off'
no-iterator: error
no-labels:
- error
- allowLoop: false
allowSwitch: false
no-lone-blocks: error
no-loop-func: error
no-magic-numbers:
- 'off'
- ignore: []
ignoreArrayIndexes: true
enforceConst: true
detectObjects: false
no-multi-spaces:
- error
- ignoreEOLComments: false
no-multi-str: error
no-new: warn
no-new-func: error
no-new-wrappers: error
no-octal: error
no-octal-escape: error
no-param-reassign: 'off'
no-proto: error
no-redeclare: error
no-restricted-properties:
- error
- object: arguments
property: callee
message: arguments.callee is deprecated
- object: global
property: isFinite
message: Please use Number.isFinite instead
- object: self
property: isFinite
message: Please use Number.isFinite instead
- object: window
property: isFinite
message: Please use Number.isFinite instead
- object: global
property: isNaN
message: Please use Number.isNaN instead
- object: self
property: isNaN
message: Please use Number.isNaN instead
- object: window
property: isNaN
message: Please use Number.isNaN instead
- property: __defineGetter__
message: Please use Object.defineProperty instead.
- property: __defineSetter__
message: Please use Object.defineProperty instead.
- object: Math
property: pow
message: Use the exponentiation operator (**) instead.
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-throw-literal: error
no-unmodified-loop-condition: 'off'
no-unused-expressions:
- error
- allowShortCircuit: true
allowTernary: true
no-unused-labels: error
no-useless-call: 'off'
no-useless-concat: error
no-useless-escape: error
no-useless-return: error
no-void: error
no-warning-comments:
- 'off'
- terms:
- todo
- fixme
- xxx
location: start
no-with: error
prefer-promise-reject-errors:
- error
- allowEmptyReject: true
radix: 'off'
require-await: 'off'
vars-on-top: error
wrap-iife:
- error
- outside
- functionPrototypeMethods: false
yoda: error
for-direction: error
getter-return:
- error
- allowImplicit: true
no-await-in-loop: error
no-compare-neg-zero: error
no-cond-assign:
- error
- always
no-console: warn
no-constant-condition: warn
no-control-regex: error
no-debugger: error
no-dupe-args: error
no-dupe-keys: error
no-duplicate-case: error
no-empty: warn
no-empty-character-class: error
no-ex-assign: error
no-extra-boolean-cast: error
no-extra-parens:
- 'off'
- all
- conditionalAssign: true
nestedBinaryExpressions: false
returnAssign: false
ignoreJSX: all
enforceForArrowConditionals: false
no-extra-semi: error
no-func-assign: error
no-inner-declarations: error
no-invalid-regexp: error
no-irregular-whitespace: error
no-obj-calls: error
no-prototype-builtins: 'off'
no-regex-spaces: error
no-sparse-arrays: error
no-template-curly-in-string: error
no-unexpected-multiline: error
no-unreachable: error
no-unsafe-finally: error
no-unsafe-negation: error
no-negated-in-lhs: 'off'
use-isnan: error
valid-jsdoc: 'off'
valid-typeof:
- error
- requireStringLiterals: true
callback-return: 'off'
global-require: error
handle-callback-err: 'off'
no-buffer-constructor: error
no-mixed-requires:
- 'off'
- false
no-new-require: error
no-path-concat: error
no-process-env: 'off'
no-process-exit: 'off'
no-restricted-modules: 'off'
no-sync: 'off'
array-bracket-newline:
- 'off'
- consistent
array-element-newline:
- 'off'
- multiline: true
minItems: 3
array-bracket-spacing:
- error
- never
block-spacing:
- error
- always
brace-style:
- error
- 1tbs
- allowSingleLine: true
camelcase:
- error
- properties: never
capitalized-comments:
- 'off'
- never
- line:
ignorePattern: ".*"
ignoreInlineComments: true
ignoreConsecutiveComments: true
block:
ignorePattern: ".*"
ignoreInlineComments: true
ignoreConsecutiveComments: true
comma-dangle:
- error
- arrays: always-multiline
objects: always-multiline
imports: always-multiline
exports: always-multiline
functions: ignore
comma-spacing:
- error
- before: false
after: true
comma-style:
- error
- last
- exceptions:
ArrayExpression: false
ArrayPattern: false
ArrowFunctionExpression: false
CallExpression: false
FunctionDeclaration: false
FunctionExpression: false
ImportDeclaration: false
ObjectExpression: false
ObjectPattern: false
VariableDeclaration: false
NewExpression: false
computed-property-spacing:
- error
- never
consistent-this: 'off'
eol-last:
- error
- always
func-call-spacing:
- error
- never
func-name-matching:
- 'off'
- always
- includeCommonJSModuleExports: false
func-names: warn
func-style:
- 'off'
- expression
function-paren-newline:
- error
- consistent
id-blacklist: 'off'
id-length: 'off'
id-match: 'off'
implicit-arrow-linebreak:
- error
- beside
indent:
- error
- 2
- SwitchCase: 1
VariableDeclarator: 1
outerIIFEBody: 1
FunctionDeclaration:
parameters: 1
body: 1
FunctionExpression:
parameters: 1
body: 1
CallExpression:
arguments: 1
ArrayExpression: 1
ObjectExpression: 1
ImportDeclaration: 1
flatTernaryExpressions: false
ignoredNodes:
- JSXElement
- JSXElement > *
- JSXAttribute
- JSXIdentifier
- JSXNamespacedName
- JSXMemberExpression
- JSXSpreadAttribute
- JSXExpressionContainer
- JSXOpeningElement
- JSXClosingElement
- JSXText
- JSXEmptyExpression
- JSXSpreadChild
ignoreComments: false
jsx-quotes:
- 'off'
- prefer-double
key-spacing:
- error
- beforeColon: false
afterColon: true
keyword-spacing:
- error
- before: true
after: true
overrides:
return:
after: true
throw:
after: true
case:
after: true
line-comment-position:
- 'off'
- position: above
ignorePattern: ''
applyDefaultPatterns: true
linebreak-style:
- error
- unix
lines-between-class-members:
- error
- always
- exceptAfterSingleLine: false
lines-around-comment: 'off'
lines-around-directive:
- error
- before: always
after: always
max-depth:
- 'off'
- 4
max-len:
- error
- 100
- 2
- ignoreUrls: true
ignoreComments: false
ignoreRegExpLiterals: true
ignoreStrings: true
ignoreTemplateLiterals: true
max-lines:
- 'off'
- max: 300
skipBlankLines: true
skipComments: true
max-nested-callbacks: 'off'
max-params:
- 'off'
- 3
max-statements:
- 'off'
- 10
max-statements-per-line:
- 'off'
- max: 1
multiline-comment-style:
- 'off'
- starred-block
multiline-ternary:
- 'off'
- never
new-cap:
- error
- newIsCap: true
newIsCapExceptions: []
capIsNew: false
capIsNewExceptions:
- Immutable.Map
- Immutable.Set
- Immutable.List
new-parens: error
newline-after-var: 'off'
newline-before-return: 'off'
newline-per-chained-call:
- error
- ignoreChainWithDepth: 4
no-array-constructor: error
no-bitwise: error
no-continue: 'off'
no-inline-comments: 'off'
no-lonely-if: error
no-mixed-operators:
- error
- groups:
- - "%"
- "**"
- - "%"
- "+"
- - "%"
- "-"
- - "%"
- "*"
- - "%"
- "/"
- - "**"
- "+"
- - "**"
- "-"
- - "**"
- "*"
- - "**"
- "/"
- - "&"
- "|"
- "^"
- "~"
- !!str '<<'
- ">>"
- ">>>"
- - "=="
- "!="
- "==="
- "!=="
- ">"
- ">="
- "<"
- "<="
- - "&&"
- "||"
- - in
- instanceof
allowSamePrecedence: false
no-mixed-spaces-and-tabs: error
no-multi-assign:
- error
no-multiple-empty-lines:
- error
- max: 2
maxEOF: 0
no-negated-condition: 'off'
no-nested-ternary: error
no-new-object: error
no-plusplus: 'off'
no-restricted-syntax: 'off'
no-spaced-func: error
no-tabs: error
no-ternary: 'off'
no-trailing-spaces:
- error
- skipBlankLines: false
ignoreComments: false
no-underscore-dangle: 'off'
no-unneeded-ternary:
- error
- defaultAssignment: false
no-whitespace-before-property: error
nonblock-statement-body-position:
- error
- beside
- overrides: {}
object-curly-spacing:
- error
- never
object-curly-newline:
- error
- ObjectExpression:
minProperties: 4
multiline: true
consistent: true
ObjectPattern:
minProperties: 4
multiline: true
consistent: true
ImportDeclaration:
minProperties: 4
multiline: true
consistent: true
ExportDeclaration:
minProperties: 4
multiline: true
consistent: true
object-property-newline:
- error
- allowAllPropertiesOnSameLine: true
one-var:
- error
- never
one-var-declaration-per-line:
- error
- always
operator-assignment:
- error
- always
operator-linebreak:
- error
- before
- overrides:
"=": none
padded-blocks:
- error
- blocks: never
classes: never
switches: never
padding-line-between-statements: 'off'
quote-props:
- error
- as-needed
- keywords: false
unnecessary: true
numbers: false
quotes:
- error
- single
- avoidEscape: true
require-jsdoc: 'off'
semi:
- error
- always
semi-spacing:
- error
- before: false
after: true
semi-style:
- error
- last
sort-keys:
- 'off'
- asc
- caseSensitive: false
natural: true
sort-vars: 'off'
space-before-blocks: error
space-before-function-paren:
- error
- anonymous: always
named: never
asyncArrow: always
space-in-parens:
- error
- never
space-infix-ops: error
space-unary-ops:
- error
- words: true
nonwords: false
overrides: {}
spaced-comment:
- error
- always
- line:
exceptions:
- "-"
- "+"
markers:
- "="
- "!"
block:
exceptions:
- "-"
- "+"
markers:
- "="
- "!"
balanced: true
switch-colon-spacing:
- error
- after: true
before: false
template-tag-spacing:
- error
- never
unicode-bom:
- error
- never
wrap-regex: 'off'
init-declarations: 'off'
no-catch-shadow: 'off'
no-delete-var: error
no-label-var: error
no-restricted-globals:
- error
- isFinite
- isNaN
- addEventListener
- blur
- close
- closed
- confirm
- defaultStatus
- event
- external
- defaultstatus
- find
- focus
- frameElement
- frames
- history
- innerHeight
- innerWidth
- length
- location
- locationbar
- menubar
- moveBy
- moveTo
- name
- onblur
- onerror
- onfocus
- onload
- onresize
- onunload
- open
- opener
- opera
- outerHeight
- outerWidth
- pageXOffset
- pageYOffset
- parent
- print
- removeEventListener
- resizeBy
- resizeTo
- screen
- screenLeft
- screenTop
- screenX
- screenY
- scroll
- scrollbars
- scrollBy
- scrollTo
- scrollX
- scrollY
- self
- status
- statusbar
- stop
- toolbar
- top
no-shadow: error
no-shadow-restricted-names: error
no-undef: error
no-undef-init: error
no-undefined: 'off'
no-unused-vars:
- error
- vars: all
args: after-used
ignoreRestSiblings: true
no-use-before-define: 'off'
arrow-body-style:
- error
- as-needed
- requireReturnForObjectLiteral: false
arrow-parens:
- error
- as-needed
- requireForBlockBody: true
arrow-spacing:
- error
- before: true
after: true
constructor-super: error
generator-star-spacing:
- error
- before: false
after: true
no-class-assign: error
no-confusing-arrow:
- error
- allowParens: true
no-const-assign: error
no-dupe-class-members: error
no-duplicate-imports: 'off'
no-new-symbol: error
no-restricted-imports:
- 'off'
- paths: []
patterns: []
no-this-before-super: error
no-useless-computed-key: error
no-useless-constructor: error
no-useless-rename:
- error
- ignoreDestructuring: false
ignoreImport: false
ignoreExport: false
no-var: error
object-shorthand: 'off'
prefer-arrow-callback:
- error
- allowNamedFunctions: false
allowUnboundThis: true
prefer-const:
- error
- destructuring: any
ignoreReadBeforeAssign: true
prefer-destructuring: 'off'
prefer-numeric-literals: error
prefer-reflect: 'off'
prefer-rest-params: error
prefer-spread: error
prefer-template: error
require-yield: error
rest-spread-spacing:
- error
- never
sort-imports:
- 'off'
- ignoreCase: false
ignoreMemberSort: false
memberSyntaxSortOrder:
- none
- all
- multiple
- single
symbol-description: error
template-curly-spacing:
- error
- always
yield-star-spacing:
- error
- after
strict: error