Closed
Description
openedon Jul 19, 2023
As a followup of #23511, a new ESLint rule should be put in place in the monorepo, so that we can discourage the usage of generic errors, and enforce the usage of the new errors framework.
- A new custom, local rule is created in the monorepo
- It warns when
throw new Error
is found - It recommends the usage of the new errors framework
- It provides a link to the documentation from Create documentation about error handling, and best practices #23512 for guidance
Once all errors are converted, the rule should be changed from warn
to error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done