@@ -436,64 +436,6 @@ rules:
436436 yield-star-spacing : off
437437
438438overrides :
439- - files : ' src/**/*.js'
440- parser : ' @babel/eslint-parser'
441- parserOptions :
442- sourceType : module
443- plugins :
444- - flowtype
445-
446- rules :
447- # #############################################################################
448- # `eslint-plugin-flowtype` rule list based on `v5.7.x`
449- # https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
450- # #############################################################################
451-
452- flowtype/array-style-complex-type : error
453- flowtype/array-style-simple-type : error
454- flowtype/define-flow-type : error
455- flowtype/newline-after-flow-annotation : error
456- flowtype/no-dupe-keys : error
457- flowtype/no-existential-type : off # checked by Flow
458- flowtype/no-flow-fix-me-comments : off
459- flowtype/no-internal-flow-type : error
460- flowtype/no-mixed : off
461- flowtype/no-mutable-array : off
462- flowtype/no-primitive-constructor-types : error
463- flowtype/no-types-missing-file-annotation : off
464- flowtype/no-unused-expressions : off
465- flowtype/no-weak-types : [error, { any: false }]
466- flowtype/require-compound-type-alias : off
467- flowtype/require-exact-type : [error, never]
468- flowtype/require-indexer-name : error
469- flowtype/require-inexact-type : off # checked by Flow
470- flowtype/require-parameter-type : off
471- flowtype/require-readonly-react-props : off
472- flowtype/require-return-type : off
473- flowtype/require-types-at-top : off
474- flowtype/require-valid-file-annotation : off
475- flowtype/require-variable-type : off
476- flowtype/sort-keys : off
477- flowtype/spread-exact-type : off
478- flowtype/type-id-match : [error, '^[A-Z]']
479- flowtype/type-import-style : [error, declaration]
480- flowtype/use-read-only-spread : error
481- flowtype/use-flow-type : error
482-
483- # Bellow rules are disabled because coflicts with Prettier, see:
484- # https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
485- flowtype/arrow-parens : off
486- flowtype/boolean-style : off
487- flowtype/delimiter-dangle : off
488- flowtype/generic-spacing : off
489- flowtype/object-type-curly-spacing : off
490- flowtype/object-type-delimiter : off
491- flowtype/quotes : off
492- flowtype/semi : off
493- flowtype/space-after-type-colon : off
494- flowtype/space-before-generic-bracket : off
495- flowtype/space-before-type-colon : off
496- flowtype/union-intersection-spacing : off
497439 - files : ' **/*.ts'
498440 parser : ' @typescript-eslint/parser'
499441 parserOptions :
@@ -642,7 +584,7 @@ overrides:
642584 ' @typescript-eslint/require-await ' : error
643585 ' @typescript-eslint/return-await ' : error
644586
645- # Disable for JS, Flow and TS
587+ # Disable for JS and TS
646588 ' @typescript-eslint/init-declarations ' : off
647589 ' @typescript-eslint/no-magic-numbers ' : off
648590 ' @typescript-eslint/no-use-before-define ' : off
@@ -665,10 +607,6 @@ overrides:
665607 ' @typescript-eslint/space-before-function-paren ' : off
666608 ' @typescript-eslint/space-infix-ops ' : off
667609 ' @typescript-eslint/type-annotation-spacing ' : off
668- - files : ' src/**/*.d.ts'
669- rules :
670- import/order : off
671- import/newline-after-import : off
672610 - files : ' src/**/__*__/**'
673611 rules :
674612 node/no-unpublished-import : [error, { allowModules: ['chai', 'mocha'] }]
0 commit comments