You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
These conditions are related and (for me) they should be in "one flow" (not separated conditions), because if someone decide to add new condition between if (a > 0) { and if (a < 0) { it "breaks" their relating.
But I agree, that else block in this case is unnecessary and should be "removed":
Seems reasonable as a style preference. Not very important in the context of linting, but it's nice to relax these style preference rules when requested.
Feature request
Is your feature request related to a problem? Please describe.
It would be nice to have an option to configure
unnecessary-else
rule to don't fail onelse if
statements (only onelse
).The text was updated successfully, but these errors were encountered: