From 8585574a70fdde8352b92d58157fbbfc7f77ebf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Thu, 8 Feb 2024 22:24:19 +0100 Subject: [PATCH] feat: add `no-else-return` BREAKING CHANGE: New rule introduced --- .eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.json b/.eslintrc.json index 30ba97d..a93361a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -137,6 +137,7 @@ "no-useless-escape": "error", "no-useless-rename": "error", "no-useless-return": "error", + "no-else-return": ["error", { "allowElseIf": false }], "no-var": "error", "no-void": "error", "no-with": "error",