-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Relax anti-label lint rules. #1835
Milestone
Comments
I believe we agreed to go forward with this. |
@jannotti if you can submit a PR for this, let me know! |
@shaunwallace That would be great. I'm sure it's a one line fix, but I haven't even looked at CRA's source yet. |
All yours @shaunwallace. |
@shaunwallace Are you still interested in pursuing this? 😄 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Lint rules complain about this:
which is the most succinct way to stop processing the current row and all following rows, once a zero is encountered anywhere.
They complain in two ways, first no-restricted-syntax complains about any label of any kind. Then no-labels complains twice, first about the label again, and second about the break statement with a label.
Expected behavior
No complaints. I'd probably be ok with a complaint about this:
as that's weird (but apparently legal). However labels are needed on looping constructs for exactly the purpose outlined here.
Actual behavior
Three lint complaints.
The text was updated successfully, but these errors were encountered: