-
Notifications
You must be signed in to change notification settings - Fork 26.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allowShortCircuit and allowTernary in no-unused-expressions #963
Comments
This is definitely not a pattern we'd encourage. Abusing value selection operators for control flow is awful for readability - As always, feel free to override whatever linter rules you like in your own app :-) |
Sure – I brought this up because these weren't explicitly set to |
Thanks, the missing options are indeed an oversight :-) I'll reopen. |
It's pretty common to write e.g.
Currently this fails the
no-unused-expressions
validation. However, usingallowShortCircuit
would allow this usage.The text was updated successfully, but these errors were encountered: