From ab55229cd3b246378f99e743bbaa4cbb6ce9a034 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 01:27:43 +0400 Subject: feat(eslint): Rule "no-else-return" Signed-off-by: Valentin Popov --- src/rules/default.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/rules') diff --git a/src/rules/default.json b/src/rules/default.json index 05db158..7c2564c 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -218,6 +218,12 @@ "no-debugger": [ "warn" ], + "no-else-return": [ + "error", + { + "allowElseIf": false + } + ], "no-empty": [ "warn", { -- cgit v1.2.3