Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNew rule: Disallow unnecessary catch clauses (no-useless-catch) #1312
Comments
feross
added
enhancement
accepted
labels
Jul 5, 2019
feross
added this to the standard v13 milestone
Jul 5, 2019
feross
closed this
Jul 6, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
feross commentedJul 5, 2019
https://eslint.org/docs/rules/no-useless-catch
Report pointless catch blocks like this:
They either indicate that there's extra code that can be removed, or more usefully, that the user intended to do something before re-throwing the error but forgot to do that.
0% ecosystem impact, so this is an easy rule to enable.