-
Notifications
You must be signed in to change notification settings - Fork 659
🐛 Rule: useSingleCaseStatement considers break keyword as 2nd statement #3781
Comments
I ran into this issue as well. |
I am wondering why Rome did not choose to implement no-case-declarations? |
👋 @rome/staff please triage this issue by adding one of the following labels: |
I think we could replace this rule with |
Since it is a very common use case to have one statement per case, and every non-fall-through case needs a |
The issue is that I don't see the purpose of this rule. I think it is only for stylistic consistency... |
From version |
Environment information
What happened?
The linter wants to insert blocks around any case that has a statement and a break statement:
Expected result
It should not flag
<statement> break
as needing blocks.Code of Conduct
The text was updated successfully, but these errors were encountered: