aboutsummaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:27:43 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:27:43 +0300
commitab55229cd3b246378f99e743bbaa4cbb6ce9a034 (patch)
tree1bf332654754e354ad9002311a9841883aec3be0 /src/rules
parente5752a7db1504475596273dab283b6bf76dcd9f5 (diff)
downloadeslint-config-ab55229cd3b246378f99e743bbaa4cbb6ce9a034.tar.xz
eslint-config-ab55229cd3b246378f99e743bbaa4cbb6ce9a034.zip
feat(eslint): Rule "no-else-return"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/default.json6
1 files changed, 6 insertions, 0 deletions
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",
{