1
- parser : babel-eslint
2
1
parserOptions :
3
- sourceType : module
2
+ sourceType : script
3
+ ecmaVersion : 2020
4
4
env :
5
5
es6 : true
6
6
node : true
7
7
reportUnusedDisableDirectives : true
8
8
plugins :
9
9
- internal-rules
10
- - flowtype
11
10
- node
12
11
- istanbul
13
12
- import
14
13
settings :
15
- flowtype :
16
- onlyFilesWithFlowAnnotation : true
17
14
node :
18
15
tryExtensions : ['.js', '.json', '.node', '.ts', '.d.ts']
19
16
@@ -25,54 +22,6 @@ rules:
25
22
26
23
internal-rules/no-dir-import : error
27
24
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
-
76
25
# #############################################################################
77
26
# `eslint-plugin-istanbul` rule list based on `v0.1.2`
78
27
# https://github.com/istanbuljs/eslint-plugin-istanbul#rules
@@ -488,14 +437,13 @@ overrides:
488
437
- files : ' **/*.ts'
489
438
parser : ' @typescript-eslint/parser'
490
439
parserOptions :
440
+ sourceType : module
491
441
project : ['tsconfig.json']
492
442
plugins :
493
443
- ' @typescript-eslint'
494
444
extends :
495
445
- plugin:import/typescript
496
446
rules :
497
- flowtype/no-types-missing-file-annotation : off
498
-
499
447
# #########################################################################
500
448
# `@typescript-eslint/eslint-plugin` rule list based on `v3.5.x`
501
449
# #########################################################################
@@ -639,8 +587,6 @@ overrides:
639
587
import/no-extraneous-dependencies : [error, { devDependencies: true }]
640
588
import/no-nodejs-modules : off
641
589
- files : ' integrationTests/**'
642
- parserOptions :
643
- sourceType : script
644
590
rules :
645
591
node/no-unpublished-import : off
646
592
node/no-unpublished-require : off
@@ -649,8 +595,6 @@ overrides:
649
595
import/no-nodejs-modules : off
650
596
no-console : off
651
597
- files : ' resources/**'
652
- parserOptions :
653
- sourceType : script
654
598
rules :
655
599
node/no-unpublished-import : off
656
600
node/no-unpublished-require : off
@@ -664,8 +608,6 @@ overrides:
664
608
no-await-in-loop : off
665
609
no-console : off
666
610
- files : ' examples/**'
667
- parserOptions :
668
- sourceType : module
669
611
rules :
670
612
internal-rules/no-dir-import : off
671
613
node/no-unpublished-import : off
0 commit comments