Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit ebba4a9

Browse files
committed
Update deps
1 parent e32b292 commit ebba4a9

File tree

4 files changed

+2359
-1222
lines changed

4 files changed

+2359
-1222
lines changed

.eslintrc.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ plugins:
1111
- node
1212
- istanbul
1313
- import
14+
settings:
15+
flowtype:
16+
onlyFilesWithFlowAnnotation: true
17+
node:
18+
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts']
1419

1520
rules:
1621
##############################################################################
@@ -21,7 +26,7 @@ rules:
2126
internal-rules/no-dir-import: error
2227

2328
##############################################################################
24-
# `eslint-plugin-flowtype` rule list based on `v5.1.x`
29+
# `eslint-plugin-flowtype` rule list based on `v5.2.x`
2530
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
2631
##############################################################################
2732

@@ -69,7 +74,7 @@ rules:
6974
flowtype/union-intersection-spacing: off
7075

7176
##############################################################################
72-
# `eslint-plugin-istanbul` rule list based on `v0.1.1`
77+
# `eslint-plugin-istanbul` rule list based on `v0.1.2`
7378
# https://github.com/istanbuljs/eslint-plugin-istanbul#rules
7479
##############################################################################
7580

@@ -129,7 +134,7 @@ rules:
129134
node/prefer-promises/fs: error
130135

131136
##############################################################################
132-
# `eslint-plugin-import` rule list based on `v2.20.x`
137+
# `eslint-plugin-import` rule list based on `v2.22.x`
133138
##############################################################################
134139

135140
# Static analysis
@@ -190,7 +195,7 @@ rules:
190195
import/dynamic-import-chunkname: off
191196

192197
##############################################################################
193-
# ESLint builtin rules list based on `v7.2.x`
198+
# ESLint builtin rules list based on `v7.3.x`
194199
##############################################################################
195200

196201
# Possible Errors
@@ -222,12 +227,14 @@ rules:
222227
no-loss-of-precision: error
223228
no-misleading-character-class: error
224229
no-obj-calls: error
230+
no-promise-executor-return: off # TODO
225231
no-prototype-builtins: error
226232
no-regex-spaces: error
227233
no-setter-return: error
228234
no-sparse-arrays: error
229235
no-template-curly-in-string: error
230236
no-unreachable: error
237+
no-unreachable-loop: error
231238
no-unsafe-finally: error
232239
no-unsafe-negation: error
233240
no-useless-backreference: error
@@ -487,15 +494,11 @@ overrides:
487494
- '@typescript-eslint'
488495
extends:
489496
- plugin:import/typescript
490-
settings:
491-
node:
492-
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts']
493497
rules:
494-
flowtype/require-valid-file-annotation: off
495498
flowtype/no-types-missing-file-annotation: off
496499

497500
##########################################################################
498-
# `@typescript-eslint/eslint-plugin` rule list based on `v3.0.x`
501+
# `@typescript-eslint/eslint-plugin` rule list based on `v3.5.x`
499502
##########################################################################
500503

501504
# Supported Rules
@@ -504,6 +507,7 @@ overrides:
504507
'@typescript-eslint/array-type': [error, { default: generic }]
505508
'@typescript-eslint/await-thenable': error
506509
'@typescript-eslint/ban-ts-comment': [error, { 'ts-expect-error': false }]
510+
'@typescript-eslint/ban-tslint-comment': error
507511
'@typescript-eslint/ban-types': error
508512
'@typescript-eslint/class-literal-property-style': off
509513
'@typescript-eslint/consistent-type-assertions':
@@ -516,6 +520,7 @@ overrides:
516520
'@typescript-eslint/method-signature-style': error
517521
'@typescript-eslint/naming-convention': off # TODO consider
518522
'@typescript-eslint/no-base-to-string': error
523+
'@typescript-eslint/no-confusing-non-null-assertion': error
519524
'@typescript-eslint/no-dynamic-delete': off
520525
'@typescript-eslint/no-empty-interface': error
521526
'@typescript-eslint/no-explicit-any': off # TODO error
@@ -584,6 +589,7 @@ overrides:
584589
no-dupe-class-members: off
585590
no-empty-function: off
586591
no-invalid-this: off
592+
no-loss-of-precision: off
587593
no-unused-expressions: off
588594
no-unused-vars: off
589595
no-useless-constructor: off
@@ -597,6 +603,7 @@ overrides:
597603
'@typescript-eslint/no-dupe-class-members': error
598604
'@typescript-eslint/no-empty-function': error
599605
'@typescript-eslint/no-invalid-this': error
606+
'@typescript-eslint/no-loss-of-precision': error
600607
'@typescript-eslint/no-unused-expressions': error
601608
'@typescript-eslint/no-unused-vars':
602609
[error, { vars: all, args: all, argsIgnorePattern: '^_' }]
@@ -631,7 +638,6 @@ overrides:
631638
import/no-restricted-paths: off
632639
import/no-extraneous-dependencies: [error, { devDependencies: true }]
633640
import/no-nodejs-modules: off
634-
no-sync: off
635641
- files: 'integrationTests/**'
636642
parserOptions:
637643
sourceType: script

.flowconfig

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,18 @@ implicit-inexact-object=error
4545
ambiguous-object-type=error
4646
uninitialized-instance-property=error
4747
unsafe-addition=error
48+
default-import-access=error
49+
invalid-import-star-use=error
50+
non-const-var-export=error
51+
this-in-exported-function=error
52+
mixed-import-and-require=error
53+
export-renamed-default=error
4854

4955
[options]
5056
include_warnings=true
5157
module.use_strict=true
5258
babel_loose_array_spread=true
5359
esproposal.optional_chaining=enable
54-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)?)\\)
55-
suppress_comment=\\(.\\|\n\\)*\\$DisableFlowOnNegativeTest
5660

5761
[version]
58-
^0.126.0
62+
^0.128.0

0 commit comments

Comments
 (0)