summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 10:51:23 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 10:51:23 +0300
commit601b3890646c21fd7764e88a362298eb7b3bbc2c (patch)
treeb651111c0b9c90fbc868c67eef7dd78ebb7f09a4
parent658ca3ebba139f1901df3299aa0d6d7102672932 (diff)
downloadeslint-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.md2
-rw-r--r--src/rules/typescript/default.json3
2 files changed, 4 insertions, 1 deletions
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",