Just finished writing up an auto-fix for this in Oxlint, in case this was a blocker for anyone: github.com/oxc-project/...
github.comfeat(linter): add fix for `preserve-caught-error` by camchenry · Pull Request #14104 · oxc-project/oxcPorted over the tests from typescript-eslint. I also improved the diagnostic messages that were pre-existing. I believe the fixer now supports all of the same cases that typescript-eslint does, but...
I like this new lint rule 👏 Don't rethrow JS errors without a cause!
0 reposts12 likes