@@ -428,61 +428,6 @@ rules:
428
428
yield-star-spacing : off
429
429
430
430
overrides :
431
- - files : ' src/**/*.js'
432
- parser : ' @babel/eslint-parser'
433
- parserOptions :
434
- sourceType : module
435
- plugins :
436
- - flowtype
437
-
438
- rules :
439
- # #############################################################################
440
- # `eslint-plugin-flowtype` rule list based on `v5.3.x`
441
- # https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
442
- # #############################################################################
443
-
444
- flowtype/array-style-complex-type : error
445
- flowtype/array-style-simple-type : error
446
- flowtype/define-flow-type : error
447
- flowtype/newline-after-flow-annotation : error
448
- flowtype/no-dupe-keys : error
449
- flowtype/no-existential-type : off # checked by Flow
450
- flowtype/no-flow-fix-me-comments : off
451
- flowtype/no-mixed : off
452
- flowtype/no-mutable-array : off
453
- flowtype/no-primitive-constructor-types : error
454
- flowtype/no-types-missing-file-annotation : off
455
- flowtype/no-unused-expressions : off
456
- flowtype/no-weak-types : [error, { any: false }]
457
- flowtype/require-compound-type-alias : off
458
- flowtype/require-exact-type : [error, never]
459
- flowtype/require-indexer-name : error
460
- flowtype/require-inexact-type : off # checked by Flow
461
- flowtype/require-parameter-type : off
462
- flowtype/require-readonly-react-props : off
463
- flowtype/require-return-type : off
464
- flowtype/require-types-at-top : off
465
- flowtype/require-valid-file-annotation : off
466
- flowtype/require-variable-type : off
467
- flowtype/sort-keys : off
468
- flowtype/spread-exact-type : off
469
- flowtype/type-id-match : [error, '^[A-Z]']
470
- flowtype/type-import-style : [error, declaration]
471
- flowtype/use-flow-type : error
472
-
473
- # Bellow rules are disabled because coflicts with Prettier, see:
474
- # https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
475
- flowtype/arrow-parens : off
476
- flowtype/boolean-style : off
477
- flowtype/delimiter-dangle : off
478
- flowtype/generic-spacing : off
479
- flowtype/object-type-curly-spacing : off
480
- flowtype/object-type-delimiter : off
481
- flowtype/semi : off
482
- flowtype/space-after-type-colon : off
483
- flowtype/space-before-generic-bracket : off
484
- flowtype/space-before-type-colon : off
485
- flowtype/union-intersection-spacing : off
486
431
- files : ' **/*.ts'
487
432
parser : ' @typescript-eslint/parser'
488
433
parserOptions :
@@ -505,7 +450,7 @@ overrides:
505
450
' @typescript-eslint/ban-ts-comment ' : [error, { 'ts-expect-error': false }]
506
451
' @typescript-eslint/ban-tslint-comment ' : error
507
452
' @typescript-eslint/ban-types ' : error
508
- ' @typescript-eslint/class-literal-property-style ' : off # TODO enable after TS conversion
453
+ ' @typescript-eslint/class-literal-property-style ' : error
509
454
' @typescript-eslint/consistent-indexed-object-style ' : off # TODO enable after TS conversion
510
455
' @typescript-eslint/consistent-type-assertions ' :
511
456
[error, { assertionStyle : as, objectLiteralTypeAssertions: never }]
@@ -527,7 +472,7 @@ overrides:
527
472
' @typescript-eslint/no-extraneous-class ' : off # TODO consider
528
473
' @typescript-eslint/no-floating-promises ' : error
529
474
' @typescript-eslint/no-for-in-array ' : error
530
- ' @typescript-eslint/no-implicit-any-catch ' : off # TODO: Enable after TS convertion
475
+ ' @typescript-eslint/no-implicit-any-catch ' : error
531
476
' @typescript-eslint/no-implied-eval ' : error
532
477
' @typescript-eslint/no-inferrable-types ' :
533
478
[error, { ignoreParameters : true, ignoreProperties: true }]
@@ -542,7 +487,7 @@ overrides:
542
487
' @typescript-eslint/no-this-alias ' : error
543
488
' @typescript-eslint/no-type-alias ' : off # TODO consider
544
489
' @typescript-eslint/no-unnecessary-boolean-literal-compare ' : error
545
- ' @typescript-eslint/no-unnecessary-condition ' : error
490
+ ' @typescript-eslint/no-unnecessary-condition ' : off # TODO temporarily disabled
546
491
' @typescript-eslint/no-unnecessary-qualifier ' : error
547
492
' @typescript-eslint/no-unnecessary-type-arguments ' : error
548
493
' @typescript-eslint/no-unnecessary-type-assertion ' : error
@@ -555,7 +500,7 @@ overrides:
555
500
' @typescript-eslint/non-nullable-type-assertion-style ' : error
556
501
' @typescript-eslint/prefer-as-const ' : off # TODO consider
557
502
' @typescript-eslint/prefer-enum-initializers ' : off # TODO consider
558
- ' @typescript-eslint/prefer-for-of ' : off # TODO switch to error after TS migration
503
+ ' @typescript-eslint/prefer-for-of ' : error
559
504
' @typescript-eslint/prefer-function-type ' : error
560
505
' @typescript-eslint/prefer-includes ' : off # TODO switch to error after IE11 drop
561
506
' @typescript-eslint/prefer-literal-enum-member ' : error
@@ -630,7 +575,7 @@ overrides:
630
575
' @typescript-eslint/require-await ' : error
631
576
' @typescript-eslint/return-await ' : error
632
577
633
- # Disable for JS, Flow and TS
578
+ # Disable for JS and TS
634
579
' @typescript-eslint/init-declarations ' : off
635
580
' @typescript-eslint/no-magic-numbers ' : off
636
581
' @typescript-eslint/no-use-before-define ' : off
0 commit comments