📎 Implement lint/noUselessElse
- eslint/no-else-return
#247
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Description
Implement ESLint rule no-else-return
I propose extending the rule to report the following cases
if () { f() break } - else {} }
The rule could thus be named
noUselessElse
.The rule should also cover
else if
and could provide a safe fix.Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
The text was updated successfully, but these errors were encountered: