error-message
Added in v0.7.3Configuration
rslint.config.ts
Rule Details
Enforce passing a message value when creating a built-in error.
This rule enforces a message value to be passed in when creating an instance of a built-in Error object. It ensures that errors have a descriptive message associated with them, which aids in debugging.
Examples of incorrect code for this rule:
Examples of correct code for this rule: