-
Notifications
You must be signed in to change notification settings - Fork 889
Request: no-empty should ignore empty catch blocks #1088
Comments
I'd like this too. +1 |
This could be added as an option to the rule: |
I don't really feel comfortable making this the only exception to the |
Because add comment to every empty block is annoying. Eslint has similar option http://eslint.org/docs/rules/no-empty#options. Why not make this behavior configurable for users? |
alright, sure, go for it, we'll accept a PR (but it won't make it into |
Hasn't there been a PR for this already which got reverted? Why not change it back? |
Here's another case:
We want to reject a promise in an async block (in tests). |
I'm getting a
no-empty
error on this:but not this:
Of course it's open to interpretation, but I would expect the first example to also be okay. What do you think?
The text was updated successfully, but these errors were encountered: