Skip to content

Commit 9dba58e

Browse files
ESLint: Add all '@typescript-eslint/eslint-plugin' rules to config (#2384)
1 parent be5268e commit 9dba58e

File tree

1 file changed

+62
-1
lines changed

1 file changed

+62
-1
lines changed

.eslintrc.yml

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ rules:
6262

6363
##############################################################################
6464
# `eslint-plugin-import` rule list based on `v2.20.x`
65-
# https://github.com/benmosher/eslint-plugin-import
6665
##############################################################################
6766

6867
# Static analysis
@@ -440,6 +439,68 @@ overrides:
440439
import/no-unresolved: off
441440
import/export: off
442441

442+
##########################################################################
443+
# `@typescript-eslint/eslint-plugin` rule list based on `v2.16.x`
444+
##########################################################################
445+
446+
# Supported Rules
447+
# https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules
448+
'@typescript-eslint/adjacent-overload-signatures': error
449+
'@typescript-eslint/array-type': off # TODO [error, { default: generic }]
450+
'@typescript-eslint/await-thenable': off # TODO error
451+
'@typescript-eslint/ban-ts-ignore': error
452+
'@typescript-eslint/ban-types': error
453+
'@typescript-eslint/consistent-type-assertions':
454+
[error, { assertionStyle: as, objectLiteralTypeAssertions: never }]
455+
'@typescript-eslint/consistent-type-definitions': off # TODO consider
456+
'@typescript-eslint/explicit-function-return-type': off # TODO consider
457+
'@typescript-eslint/explicit-member-accessibility': off # TODO consider
458+
'@typescript-eslint/member-ordering': off # TODO consider
459+
'@typescript-eslint/naming-convention': off # TODO consider
460+
'@typescript-eslint/no-dynamic-delete': off
461+
'@typescript-eslint/no-empty-interface': off # TODO error
462+
'@typescript-eslint/no-explicit-any': off # TODO error
463+
'@typescript-eslint/no-extra-non-null-assertion': error
464+
'@typescript-eslint/no-extraneous-class': off # TODO consider
465+
'@typescript-eslint/no-floating-promises': off # TODO error
466+
'@typescript-eslint/no-for-in-array': error
467+
'@typescript-eslint/no-implied-eval': off # TODO error
468+
'@typescript-eslint/no-inferrable-types':
469+
[error, { ignoreParameters: true, ignoreProperties: true }]
470+
'@typescript-eslint/no-misused-new': error
471+
'@typescript-eslint/no-misused-promises': off # TODO error
472+
'@typescript-eslint/no-namespace': error
473+
'@typescript-eslint/no-non-null-assertion': off # TODO error
474+
'@typescript-eslint/no-parameter-properties': error
475+
'@typescript-eslint/no-require-imports': error
476+
'@typescript-eslint/no-this-alias': error
477+
'@typescript-eslint/no-throw-literal': off # TODO error
478+
'@typescript-eslint/no-type-alias': off # TODO consider
479+
'@typescript-eslint/no-unnecessary-condition': off # TODO error
480+
'@typescript-eslint/no-unnecessary-qualifier': off # TODO error
481+
'@typescript-eslint/no-unnecessary-type-arguments': off # TODO error
482+
'@typescript-eslint/no-unnecessary-type-assertion': off # TODO error
483+
'@typescript-eslint/no-unused-vars-experimental': off
484+
'@typescript-eslint/no-var-requires': error
485+
'@typescript-eslint/prefer-for-of': off # TODO switch to error after TS migration
486+
'@typescript-eslint/prefer-function-type': error
487+
'@typescript-eslint/prefer-includes': off # TODO switch to error after IE11 drop
488+
'@typescript-eslint/prefer-namespace-keyword': error
489+
'@typescript-eslint/prefer-nullish-coalescing': off # TODO error
490+
'@typescript-eslint/prefer-optional-chain': error
491+
'@typescript-eslint/prefer-readonly': off # TODO error
492+
'@typescript-eslint/prefer-regexp-exec': off # TODO error
493+
'@typescript-eslint/prefer-string-starts-ends-with': off # TODO switch to error after IE11 drop
494+
'@typescript-eslint/promise-function-async': off
495+
'@typescript-eslint/require-array-sort-compare': off # TODO error
496+
'@typescript-eslint/restrict-plus-operands': off # TODO [error, { checkCompoundAssignments: true }]
497+
'@typescript-eslint/restrict-template-expressions': off # TODO error
498+
'@typescript-eslint/strict-boolean-expressions': off # TODO consider
499+
'@typescript-eslint/triple-slash-reference': error
500+
'@typescript-eslint/typedef': off
501+
'@typescript-eslint/unbound-method': off # TODO consider
502+
'@typescript-eslint/unified-signatures': off # TODO error
503+
443504
# Extension Rules
444505
# https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#extension-rules
445506

0 commit comments

Comments
 (0)