Commit 2ebad97
Eric Wheeler
feat: Add no-useless-catch ESLint rule
Enforce the `no-useless-catch` ESLint rule across the codebase.
This rule disallows `catch` clauses that only rethrow the caught error,
which provides no additional value and can make debugging harder.
This change adds the rule as an "error" to:
- The root ESLint configuration ([](/.eslintrc.json))
- The webview UI ESLint configuration ([](webview-ui/.eslintrc.json))
This ensures that all `catch` blocks either handle the error meaningfully
or are omitted if the error should propagate.
Signed-off-by: Eric Wheeler <[email protected]>1 parent 277a309 commit 2ebad97
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments