summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:22:52 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:22:52 +0300
commit77985e07d0ba6a8274454c1a1d59a7a521d18177 (patch)
treee5b90353c58f83f1b170f485c4bfbbe3cd0e04d5
parent4553037062717bbbc6f41e9229cfb6d78a7e039e (diff)
downloadeslint-config-77985e07d0ba6a8274454c1a1d59a7a521d18177.tar.xz
eslint-config-77985e07d0ba6a8274454c1a1d59a7a521d18177.zip
feat(typescript): Rule "no-useless-constructor"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 5f55645..be8c3b6 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -385,7 +385,7 @@
- [X] "no-unused-vars"
- [X] "no-unused-vars-experimental"
- [ ] "no-use-before-define"
-- [ ] "no-useless-constructor"
+- [X] "no-useless-constructor"
- [ ] "no-var-requires"
- [ ] "prefer-as-const"
- [ ] "prefer-for-of"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 244b4a8..631bdf2 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -90,6 +90,9 @@
"@typescript-eslint/no-unused-vars-experimental": [
"error"
],
+ "@typescript-eslint/no-useless-constructor": [
+ "error"
+ ],
"@typescript-eslint/quotes": [
"error",
"double",
@@ -144,6 +147,9 @@
"no-unused-vars": [
"off"
],
+ "no-useless-constructor": [
+ "off"
+ ],
"quotes": [
"off"
],