aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:30:32 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:30:32 +0300
commit89417413948233b86d5a1a8a8d2dab4c3a00b8c0 (patch)
tree1af96cdaabd1393c1cd6a16cbd2e73d13848d07c
parent0fdc1f6b956dbc273325842a4af60a5425826f5f (diff)
downloadeslint-config-89417413948233b86d5a1a8a8d2dab4c3a00b8c0.tar.xz
eslint-config-89417413948233b86d5a1a8a8d2dab4c3a00b8c0.zip
feat(eslint): Rule "no-useless-call"
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 94f0774..a331ecc 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -208,7 +208,7 @@
- [X] "no-unused-vars"
- [ ] "no-use-before-define"
- [ ] "no-useless-backreference"
-- [ ] "no-useless-call"
+- [X] "no-useless-call"
- [ ] "no-useless-catch"
- [X] "no-useless-computed-key"
- [ ] "no-useless-concat"
diff --git a/src/rules/default.json b/src/rules/default.json
index 91af2ff..9cdbcc9 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -368,6 +368,9 @@
"vars": "all"
}
],
+ "no-useless-call": [
+ "error"
+ ],
"no-useless-computed-key": [
"error",
{