From 601b3890646c21fd7764e88a362298eb7b3bbc2c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 11:51:23 +0400 Subject: feat(typescript): Rule "no-var-requires" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/typescript/default.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 98f65b1..d61f1c9 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -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", -- cgit v1.2.3