-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Support braces for no-fallthrough #7889
Comments
Seems reasonable to me. Just to make sure I understand your proposal, using ESTree terms:
Does that sound correct? (Note: I'm basing this on the AST seen here.) |
@platinumazure Yes, that sounds about right :) Thank you. |
Thanks for your interest in improving ESLint. Unfortunately, it looks like this issue didn't get enough support from the team and so I'm closing it. While we wish we'd be able to accommodate everyone's requests, we do need to prioritize. We've found that issues failing to reach consensus after a long time tend to never do it, and as such, we close those issues. This doesn't mean the idea isn't interesting, just that it's not something the team can commit to. |
@not-an-aardvark I didn't get the feeling that there was a lack of consensus over this issue. Please see the last 2 comments. |
@cowwoc what @not-an-aardvark means is consensus from the team. Every proposed change has to be supported by 3 team members and championed by one. Unfortunately, in this case, none of the team members elected to support this change other then @platinumazure |
Fair enough. Thanks for the clarification. Hopefully this will be revisited in the future. |
This has been brought up again in #9080. |
What version of ESLint are you using?
3.0.1
What rule do you want to change?
no-fallthrough
What code should be flagged as correct with this change?
What happens when the rule is applied to this code now?
Errors:
Expected a 'break' statement before 'default'.
... Basically I am asking for the rule to support case statements that contain braces.
The text was updated successfully, but these errors were encountered: