Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rules:
graphql-internal/no-dir-import: error

##############################################################################
# `eslint-plugin-flowtype` rule list based on `v4.6.x`
# `eslint-plugin-flowtype` rule list based on `v4.7.x`
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
##############################################################################

Expand Down Expand Up @@ -439,9 +439,10 @@ overrides:
- plugin:import/typescript
rules:
flowtype/require-valid-file-annotation: off
flowtype/no-types-missing-file-annotation: off

##########################################################################
# `@typescript-eslint/eslint-plugin` rule list based on `v2.21.x`
# `@typescript-eslint/eslint-plugin` rule list based on `v2.26.x`
##########################################################################

# Supported Rules
Expand All @@ -451,6 +452,7 @@ overrides:
'@typescript-eslint/await-thenable': error
'@typescript-eslint/ban-ts-comment': error
'@typescript-eslint/ban-types': error
'@typescript-eslint/class-literal-property-style': off
'@typescript-eslint/consistent-type-assertions':
[error, { assertionStyle: as, objectLiteralTypeAssertions: never }]
'@typescript-eslint/consistent-type-definitions': off # TODO consider
Expand Down Expand Up @@ -485,6 +487,9 @@ overrides:
'@typescript-eslint/no-unnecessary-qualifier': error
'@typescript-eslint/no-unnecessary-type-arguments': error
'@typescript-eslint/no-unnecessary-type-assertion': error
'@typescript-eslint/no-unsafe-call': off # TODO consider
'@typescript-eslint/no-unsafe-member-access': off # TODO consider
'@typescript-eslint/no-unsafe-return': off # TODO consider
'@typescript-eslint/no-unused-vars-experimental': off
'@typescript-eslint/no-var-requires': error
'@typescript-eslint/prefer-as-const': off # TODO consider
Expand All @@ -495,7 +500,7 @@ overrides:
'@typescript-eslint/prefer-nullish-coalescing': error
'@typescript-eslint/prefer-optional-chain': error
'@typescript-eslint/prefer-readonly': error
'@typescript-eslint/prefer-readonly-parameter-types': off # FIXME: crash eslint
'@typescript-eslint/prefer-readonly-parameter-types': off # TODO consider
'@typescript-eslint/prefer-regexp-exec': error
'@typescript-eslint/prefer-string-starts-ends-with': off # TODO switch to error after IE11 drop
'@typescript-eslint/promise-function-async': off
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@
},
"dependencies": {},
"devDependencies": {
"@babel/core": "7.8.7",
"@babel/plugin-transform-flow-strip-types": "7.8.3",
"@babel/preset-env": "7.8.7",
"@babel/register": "7.8.6",
"@typescript-eslint/eslint-plugin": "2.22.0",
"@typescript-eslint/parser": "2.22.0",
"@babel/core": "7.9.0",
"@babel/plugin-transform-flow-strip-types": "7.9.0",
"@babel/preset-env": "7.9.0",
"@babel/register": "7.9.0",
"@typescript-eslint/eslint-plugin": "2.26.0",
"@typescript-eslint/parser": "2.26.0",
"babel-eslint": "10.1.0",
"chai": "4.2.0",
"cspell": "4.0.55",
"dtslint": "3.3.0",
"dtslint": "3.4.1",
"eslint": "6.8.0",
"eslint-plugin-flowtype": "4.6.0",
"eslint-plugin-flowtype": "4.7.0",
"eslint-plugin-graphql-internal": "link:./resources/eslint-rules",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-import": "2.20.2",
"flow-bin": "0.121.0",
"mocha": "7.1.0",
"mocha": "7.1.1",
"nyc": "15.0.0",
"prettier": "2.0.2",
"typescript": "^3.8.3"
Expand Down
Loading