1- parser : babel-eslint
21parserOptions :
3- sourceType : module
2+ sourceType : script
3+ ecmaVersion : 2020
44env :
55 es6 : true
66 node : true
77reportUnusedDisableDirectives : true
88plugins :
99 - internal-rules
10- - flowtype
1110 - node
1211 - istanbul
1312 - import
1413settings :
15- flowtype :
16- onlyFilesWithFlowAnnotation : true
1714 node :
1815 tryExtensions : ['.js', '.json', '.node', '.ts', '.d.ts']
1916
@@ -25,54 +22,6 @@ rules:
2522
2623 internal-rules/no-dir-import : error
2724
28- # #############################################################################
29- # `eslint-plugin-flowtype` rule list based on `v5.2.x`
30- # https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
31- # #############################################################################
32-
33- flowtype/array-style-complex-type : error
34- flowtype/array-style-simple-type : error
35- flowtype/define-flow-type : error
36- flowtype/newline-after-flow-annotation : error
37- flowtype/no-dupe-keys : error
38- flowtype/no-existential-type : off # checked by Flow
39- flowtype/no-flow-fix-me-comments : error
40- flowtype/no-mixed : off
41- flowtype/no-mutable-array : off
42- flowtype/no-primitive-constructor-types : error
43- flowtype/no-types-missing-file-annotation : error
44- flowtype/no-unused-expressions : off
45- flowtype/no-weak-types : [error, { any: false }]
46- flowtype/require-compound-type-alias : off
47- flowtype/require-exact-type : error
48- flowtype/require-indexer-name : error
49- flowtype/require-inexact-type : off # checked by Flow
50- flowtype/require-parameter-type : off
51- flowtype/require-readonly-react-props : off
52- flowtype/require-return-type : off
53- flowtype/require-types-at-top : off
54- flowtype/require-valid-file-annotation :
55- [error, always, { annotationStyle : line, strict: true }]
56- flowtype/require-variable-type : off
57- flowtype/sort-keys : off
58- flowtype/spread-exact-type : off
59- flowtype/type-id-match : [error, '^[A-Z]|^\$']
60- flowtype/type-import-style : [error, declaration]
61- flowtype/use-flow-type : error
62-
63- # Bellow rules are disabled because coflicts with Prettier, see:
64- # https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
65- flowtype/arrow-parens : off
66- flowtype/boolean-style : off
67- flowtype/delimiter-dangle : off
68- flowtype/generic-spacing : off
69- flowtype/object-type-delimiter : off
70- flowtype/semi : off
71- flowtype/space-after-type-colon : off
72- flowtype/space-before-generic-bracket : off
73- flowtype/space-before-type-colon : off
74- flowtype/union-intersection-spacing : off
75-
7625 # #############################################################################
7726 # `eslint-plugin-istanbul` rule list based on `v0.1.2`
7827 # https://github.com/istanbuljs/eslint-plugin-istanbul#rules
@@ -488,14 +437,13 @@ overrides:
488437 - files : ' **/*.ts'
489438 parser : ' @typescript-eslint/parser'
490439 parserOptions :
440+ sourceType : module
491441 project : ['tsconfig.json']
492442 plugins :
493443 - ' @typescript-eslint'
494444 extends :
495445 - plugin:import/typescript
496446 rules :
497- flowtype/no-types-missing-file-annotation : off
498-
499447 # #########################################################################
500448 # `@typescript-eslint/eslint-plugin` rule list based on `v3.5.x`
501449 # #########################################################################
@@ -639,8 +587,6 @@ overrides:
639587 import/no-extraneous-dependencies : [error, { devDependencies: true }]
640588 import/no-nodejs-modules : off
641589 - files : ' integrationTests/**'
642- parserOptions :
643- sourceType : script
644590 rules :
645591 node/no-unpublished-import : off
646592 node/no-unpublished-require : off
@@ -649,8 +595,6 @@ overrides:
649595 import/no-nodejs-modules : off
650596 no-console : off
651597 - files : ' resources/**'
652- parserOptions :
653- sourceType : script
654598 rules :
655599 node/no-unpublished-import : off
656600 node/no-unpublished-require : off
@@ -664,8 +608,6 @@ overrides:
664608 no-await-in-loop : off
665609 no-console : off
666610 - files : ' examples/**'
667- parserOptions :
668- sourceType : module
669611 rules :
670612 internal-rules/no-dir-import : off
671613 node/no-unpublished-import : off
0 commit comments