diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 10:51:23 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 10:51:23 +0300 |
commit | 601b3890646c21fd7764e88a362298eb7b3bbc2c (patch) | |
tree | b651111c0b9c90fbc868c67eef7dd78ebb7f09a4 | |
parent | 658ca3ebba139f1901df3299aa0d6d7102672932 (diff) | |
download | eslint-config-601b3890646c21fd7764e88a362298eb7b3bbc2c.tar.xz eslint-config-601b3890646c21fd7764e88a362298eb7b3bbc2c.zip |
feat(typescript): Rule "no-var-requires"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/typescript/default.json | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -386,7 +386,7 @@ - [X] "no-unused-vars-experimental" - [ ] "no-use-before-define" - [X] "no-useless-constructor" -- [ ] "no-var-requires" +- [X] "no-var-requires" - [ ] "prefer-as-const" - [ ] "prefer-for-of" - [ ] "prefer-function-type" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 631bdf2..39ea233 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -93,6 +93,9 @@ "@typescript-eslint/no-useless-constructor": [ "error" ], + "@typescript-eslint/no-var-requires": [ + "error" + ], "@typescript-eslint/quotes": [ "error", "double", |