Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps #314

Merged
merged 1 commit into from
Mar 18, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 32 additions & 10 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
parser: babel-eslint
parserOptions:
sourceType: script
ecmaVersion: 2020
Expand All @@ -16,7 +15,7 @@ settings:

rules:
##############################################################################
# `eslint-plugin-istanbul` rule list based on `v0.1.1`
# `eslint-plugin-istanbul` rule list based on `v0.1.2`
# https://github.com/istanbuljs/eslint-plugin-istanbul#rules
##############################################################################

Expand Down Expand Up @@ -76,7 +75,7 @@ rules:
node/prefer-promises/fs: off

##############################################################################
# `eslint-plugin-import` rule list based on `v2.21.x`
# `eslint-plugin-import` rule list based on `v2.22.x`
##############################################################################

# Static analysis
Expand Down Expand Up @@ -132,7 +131,7 @@ rules:
import/dynamic-import-chunkname: off

##############################################################################
# ESLint builtin rules list based on `v7.2.x`
# ESLint builtin rules list based on `v7.22.x`
##############################################################################

# Possible Errors
Expand Down Expand Up @@ -164,14 +163,17 @@ rules:
no-loss-of-precision: error
no-misleading-character-class: error
no-obj-calls: error
no-promise-executor-return: off # TODO
no-prototype-builtins: error
no-regex-spaces: error
no-setter-return: error
no-sparse-arrays: error
no-template-curly-in-string: error
no-unreachable: error
no-unreachable-loop: error
no-unsafe-finally: error
no-unsafe-negation: error
no-unsafe-optional-chaining: [error, { disallowArithmeticOperators: true }]
no-useless-backreference: error
require-atomic-updates: error
use-isnan: error
Expand Down Expand Up @@ -223,6 +225,7 @@ rules:
no-new: error
no-new-func: error
no-new-wrappers: error
no-nonoctal-decimal-escape: error
no-octal: error
no-octal-escape: error
no-param-reassign: error
Expand Down Expand Up @@ -285,7 +288,7 @@ rules:
func-name-matching: off
func-names: off
func-style: off
id-blacklist: off
id-denylist: off
id-length: off
id-match: [error, '^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$']
line-comment-position: off
Expand Down Expand Up @@ -421,15 +424,15 @@ rules:

overrides:
- files: 'src/**/*.js'
parser: babel-eslint
parser: '@babel/eslint-parser'
parserOptions:
sourceType: module
plugins:
- flowtype

rules:
##############################################################################
# `eslint-plugin-flowtype` rule list based on `v5.1.x`
# `eslint-plugin-flowtype` rule list based on `v5.3.x`
# https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype
##############################################################################

Expand Down Expand Up @@ -468,6 +471,7 @@ overrides:
flowtype/boolean-style: off
flowtype/delimiter-dangle: off
flowtype/generic-spacing: off
flowtype/object-type-curly-spacing: off
flowtype/object-type-delimiter: off
flowtype/semi: off
flowtype/space-after-type-colon: off
Expand All @@ -485,7 +489,7 @@ overrides:
- plugin:import/typescript
rules:
##########################################################################
# `@typescript-eslint/eslint-plugin` rule list based on `v3.5.x`
# `@typescript-eslint/eslint-plugin` rule list based on `v4.17.x`
##########################################################################

# Supported Rules
Expand All @@ -496,10 +500,12 @@ overrides:
'@typescript-eslint/ban-ts-comment': [error, { 'ts-expect-error': false }]
'@typescript-eslint/ban-tslint-comment': error
'@typescript-eslint/ban-types': error
'@typescript-eslint/class-literal-property-style': off
'@typescript-eslint/class-literal-property-style': off # TODO enable after TS conversion
'@typescript-eslint/consistent-indexed-object-style': off # TODO enable after TS conversion
'@typescript-eslint/consistent-type-assertions':
[error, { assertionStyle: as, objectLiteralTypeAssertions: never }]
'@typescript-eslint/consistent-type-definitions': off # TODO consider
'@typescript-eslint/consistent-type-imports': off # TODO enable after TS conversion
'@typescript-eslint/explicit-function-return-type': off # TODO consider
'@typescript-eslint/explicit-member-accessibility': off # TODO consider
'@typescript-eslint/explicit-module-boundary-types': off # TODO consider
Expand All @@ -508,13 +514,15 @@ overrides:
'@typescript-eslint/naming-convention': off # TODO consider
'@typescript-eslint/no-base-to-string': error
'@typescript-eslint/no-confusing-non-null-assertion': error
'@typescript-eslint/no-confusing-void-expression': error
'@typescript-eslint/no-dynamic-delete': off
'@typescript-eslint/no-empty-interface': error
'@typescript-eslint/no-explicit-any': off # TODO error
'@typescript-eslint/no-extra-non-null-assertion': error
'@typescript-eslint/no-extraneous-class': off # TODO consider
'@typescript-eslint/no-floating-promises': error
'@typescript-eslint/no-for-in-array': error
'@typescript-eslint/no-implicit-any-catch': off # TODO: Enable after TS convertion
'@typescript-eslint/no-implied-eval': error
'@typescript-eslint/no-inferrable-types':
[error, { ignoreParameters: true, ignoreProperties: true }]
Expand All @@ -534,16 +542,19 @@ overrides:
'@typescript-eslint/no-unnecessary-qualifier': error
'@typescript-eslint/no-unnecessary-type-arguments': error
'@typescript-eslint/no-unnecessary-type-assertion': error
'@typescript-eslint/no-unnecessary-type-constraint': off # TODO consider
'@typescript-eslint/no-unsafe-assignment': off # TODO consider
'@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/non-nullable-type-assertion-style': error
'@typescript-eslint/prefer-as-const': off # TODO consider
'@typescript-eslint/prefer-enum-initializers': off # TODO consider
'@typescript-eslint/prefer-for-of': off # TODO switch to error after TS migration
'@typescript-eslint/prefer-function-type': error
'@typescript-eslint/prefer-includes': off # TODO switch to error after IE11 drop
'@typescript-eslint/prefer-literal-enum-member': error
'@typescript-eslint/prefer-namespace-keyword': error
'@typescript-eslint/prefer-nullish-coalescing': error
'@typescript-eslint/prefer-optional-chain': error
Expand All @@ -558,6 +569,7 @@ overrides:
'@typescript-eslint/restrict-plus-operands':
[error, { checkCompoundAssignments: true }]
'@typescript-eslint/restrict-template-expressions': error
'@typescript-eslint/sort-type-union-intersection-members': off # TODO consider
'@typescript-eslint/strict-boolean-expressions': off # TODO consider
'@typescript-eslint/switch-exhaustiveness-check': error
'@typescript-eslint/triple-slash-reference': error
Expand All @@ -576,7 +588,10 @@ overrides:
no-dupe-class-members: off
no-empty-function: off
no-invalid-this: off
no-loop-func: off
no-loss-of-precision: off
no-redeclare: off
no-shadow: off
no-unused-expressions: off
no-unused-vars: off
no-useless-constructor: off
Expand All @@ -590,7 +605,10 @@ overrides:
'@typescript-eslint/no-dupe-class-members': error
'@typescript-eslint/no-empty-function': error
'@typescript-eslint/no-invalid-this': error
'@typescript-eslint/no-loop-func': error
'@typescript-eslint/no-loss-of-precision': error
'@typescript-eslint/no-redeclare': error
'@typescript-eslint/no-shadow': error
'@typescript-eslint/no-unused-expressions': error
'@typescript-eslint/no-unused-vars':
[
Expand All @@ -610,11 +628,14 @@ overrides:
'@typescript-eslint/init-declarations': off
'@typescript-eslint/no-magic-numbers': off
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/no-duplicate-imports': off # Superseded by `import/no-duplicates`

# Bellow rules are disabled because coflicts with Prettier, see:
# https://github.com/prettier/eslint-config-prettier/blob/master/%40typescript-eslint.js
'@typescript-eslint/object-curly-spacing': off
'@typescript-eslint/quotes': off
'@typescript-eslint/brace-style': off
'@typescript-eslint/comma-dangle': off
'@typescript-eslint/comma-spacing': off
'@typescript-eslint/func-call-spacing': off
'@typescript-eslint/indent': off
Expand All @@ -624,6 +645,7 @@ overrides:
'@typescript-eslint/no-extra-semi': off
'@typescript-eslint/semi': off
'@typescript-eslint/space-before-function-paren': off
'@typescript-eslint/space-infix-ops': off
'@typescript-eslint/type-annotation-spacing': off
- files: 'src/**/__*__/**'
rules:
Expand Down