summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:31:45 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:31:45 +0300
commit7061ae1ad706832662d2c72bc866facae00676f2 (patch)
treefee84e5bd49c22c522ac4fab13247cbfba4e2a40
parent89417413948233b86d5a1a8a8d2dab4c3a00b8c0 (diff)
downloadeslint-config-7061ae1ad706832662d2c72bc866facae00676f2.tar.xz
eslint-config-7061ae1ad706832662d2c72bc866facae00676f2.zip
feat(eslint): Rule "no-useless-return"
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 a331ecc..7a53064 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -215,7 +215,7 @@
- [X] "no-useless-constructor"
- [ ] "no-useless-escape"
- [X] "no-useless-rename"
-- [ ] "no-useless-return"
+- [X] "no-useless-return"
- [X] "no-var"
- [ ] "no-void"
- [ ] "no-warning-comments"
diff --git a/src/rules/default.json b/src/rules/default.json
index 9cdbcc9..0611be9 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -388,6 +388,9 @@
"ignoreImport": false
}
],
+ "no-useless-return": [
+ "error"
+ ],
"no-var": [
"error"
],