From 7061ae1ad706832662d2c72bc866facae00676f2 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:31:45 +0400 Subject: feat(eslint): Rule "no-useless-return" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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" ], -- cgit v1.2.3