aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:21:22 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:21:22 +0300
commit4553037062717bbbc6f41e9229cfb6d78a7e039e (patch)
tree72ebe3ca110d681766efe7d8a3428e489e338d1e
parent5051eed9df34c9beb2a9fd9e2ba379b43cd411f5 (diff)
downloadeslint-config-4553037062717bbbc6f41e9229cfb6d78a7e039e.tar.xz
eslint-config-4553037062717bbbc6f41e9229cfb6d78a7e039e.zip
feat(eslint): Rule "no-useless-constructor"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 106b598..5f55645 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -212,7 +212,7 @@
- [ ] "no-useless-catch"
- [ ] "no-useless-computed-key"
- [ ] "no-useless-concat"
-- [ ] "no-useless-constructor"
+- [X] "no-useless-constructor"
- [ ] "no-useless-escape"
- [X] "no-useless-rename"
- [ ] "no-useless-return"
diff --git a/src/rules/default.json b/src/rules/default.json
index 9da13f1..bc3b692 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -362,6 +362,9 @@
"vars": "all"
}
],
+ "no-useless-constructor": [
+ "error"
+ ],
"no-useless-rename": [
"error",
{