Conversation
|
Rule addition now has no impact. |
|
One repo started failing, but I PR'd it: zensh/resp.js#3 |
|
Let's ship this in |
mightyiam
left a comment
There was a problem hiding this comment.
Oh, wow. I didn't even realize that the code after case foo: is not a block. And that I could simply add a block there. Lovely. Excellent rule, it seems.
|
@mightyiam Yeah, this blew my mind as well when I discovered it. Now I always use blocks in case statements. |
|
Just discovered this rule from upgrading to standard 14 and grumbled until I read https://eslint.org/docs/rules/no-case-declarations and learned something new. Thank you! I feel like each of these rules deserves its own class or blog or something, so much to learn about here. Okay good night 👋 |
|
@ungoldman Indeed! Perhaps we can add such explanations to the |

Adds the rule
no-case-declarations.Ecosystem impact:
Failing packages:
References: