@@ -11,6 +11,11 @@ plugins:
11
11
- node
12
12
- istanbul
13
13
- import
14
+ settings :
15
+ flowtype :
16
+ onlyFilesWithFlowAnnotation : true
17
+ node :
18
+ tryExtensions : ['.js', '.json', '.node', '.ts', '.d.ts']
14
19
15
20
rules :
16
21
# #############################################################################
21
26
internal-rules/no-dir-import : error
22
27
23
28
# #############################################################################
24
- # `eslint-plugin-flowtype` rule list based on `v5.1 .x`
29
+ # `eslint-plugin-flowtype` rule list based on `v5.2 .x`
25
30
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
26
31
# #############################################################################
27
32
69
74
flowtype/union-intersection-spacing : off
70
75
71
76
# #############################################################################
72
- # `eslint-plugin-istanbul` rule list based on `v0.1.1 `
77
+ # `eslint-plugin-istanbul` rule list based on `v0.1.2 `
73
78
# https://github.com/istanbuljs/eslint-plugin-istanbul#rules
74
79
# #############################################################################
75
80
@@ -129,7 +134,7 @@ rules:
129
134
node/prefer-promises/fs : error
130
135
131
136
# #############################################################################
132
- # `eslint-plugin-import` rule list based on `v2.20 .x`
137
+ # `eslint-plugin-import` rule list based on `v2.22 .x`
133
138
# #############################################################################
134
139
135
140
# Static analysis
@@ -190,7 +195,7 @@ rules:
190
195
import/dynamic-import-chunkname : off
191
196
192
197
# #############################################################################
193
- # ESLint builtin rules list based on `v7.2 .x`
198
+ # ESLint builtin rules list based on `v7.3 .x`
194
199
# #############################################################################
195
200
196
201
# Possible Errors
@@ -222,12 +227,14 @@ rules:
222
227
no-loss-of-precision : error
223
228
no-misleading-character-class : error
224
229
no-obj-calls : error
230
+ no-promise-executor-return : off # TODO
225
231
no-prototype-builtins : error
226
232
no-regex-spaces : error
227
233
no-setter-return : error
228
234
no-sparse-arrays : error
229
235
no-template-curly-in-string : error
230
236
no-unreachable : error
237
+ no-unreachable-loop : error
231
238
no-unsafe-finally : error
232
239
no-unsafe-negation : error
233
240
no-useless-backreference : error
@@ -487,15 +494,11 @@ overrides:
487
494
- ' @typescript-eslint'
488
495
extends :
489
496
- plugin:import/typescript
490
- settings :
491
- node :
492
- tryExtensions : ['.js', '.json', '.node', '.ts', '.d.ts']
493
497
rules :
494
- flowtype/require-valid-file-annotation : off
495
498
flowtype/no-types-missing-file-annotation : off
496
499
497
500
# #########################################################################
498
- # `@typescript-eslint/eslint-plugin` rule list based on `v3.0 .x`
501
+ # `@typescript-eslint/eslint-plugin` rule list based on `v3.5 .x`
499
502
# #########################################################################
500
503
501
504
# Supported Rules
@@ -504,6 +507,7 @@ overrides:
504
507
' @typescript-eslint/array-type ' : [error, { default: generic }]
505
508
' @typescript-eslint/await-thenable ' : error
506
509
' @typescript-eslint/ban-ts-comment ' : [error, { 'ts-expect-error': false }]
510
+ ' @typescript-eslint/ban-tslint-comment ' : error
507
511
' @typescript-eslint/ban-types ' : error
508
512
' @typescript-eslint/class-literal-property-style ' : off
509
513
' @typescript-eslint/consistent-type-assertions ' :
@@ -516,6 +520,7 @@ overrides:
516
520
' @typescript-eslint/method-signature-style ' : error
517
521
' @typescript-eslint/naming-convention ' : off # TODO consider
518
522
' @typescript-eslint/no-base-to-string ' : error
523
+ ' @typescript-eslint/no-confusing-non-null-assertion ' : error
519
524
' @typescript-eslint/no-dynamic-delete ' : off
520
525
' @typescript-eslint/no-empty-interface ' : error
521
526
' @typescript-eslint/no-explicit-any ' : off # TODO error
@@ -584,6 +589,7 @@ overrides:
584
589
no-dupe-class-members : off
585
590
no-empty-function : off
586
591
no-invalid-this : off
592
+ no-loss-of-precision : off
587
593
no-unused-expressions : off
588
594
no-unused-vars : off
589
595
no-useless-constructor : off
@@ -597,6 +603,7 @@ overrides:
597
603
' @typescript-eslint/no-dupe-class-members ' : error
598
604
' @typescript-eslint/no-empty-function ' : error
599
605
' @typescript-eslint/no-invalid-this ' : error
606
+ ' @typescript-eslint/no-loss-of-precision ' : error
600
607
' @typescript-eslint/no-unused-expressions ' : error
601
608
' @typescript-eslint/no-unused-vars ' :
602
609
[error, { vars : all, args: all, argsIgnorePattern: '^_' }]
@@ -631,7 +638,6 @@ overrides:
631
638
import/no-restricted-paths : off
632
639
import/no-extraneous-dependencies : [error, { devDependencies: true }]
633
640
import/no-nodejs-modules : off
634
- no-sync : off
635
641
- files : ' integrationTests/**'
636
642
parserOptions :
637
643
sourceType : script
0 commit comments