[chore]: add error cause lint rule
Merged
SE
9mo ago+280+280+012345678901234567890123456789-222-222-012345678901234567890123456789
why
- to enforce best practices in error handling by requiring the cause of a given error to be included in the error that gets thrown
what changed
- added the
preserve-caught-errorlint rule - updated calls that were not preserving caught errors
- also bumped eslint version & typescript eslint for compatibility with the new rule
Summary by cubic
Adds an ESLint rule to require preserving the original error when rethrowing, updates code to pass error causes, and fixes related linting issues. This improves debugging by linking errors via the cause option.
- Dependencies
- ESLint → 10.0.2
- @eslint/js → 10.0.1
- typescript-eslint → 8.56.1