Guidelines
Describe the bug
ESLint rule https://typescript-eslint.io/rules/only-throw-error/ complains about derived classes
const RecipeError = BaseError.subclass('RecipeError', {
props: { recipeId },
});
throw new RecipeError('Add failed:'); // <--- ESLint plugin: Expected an error object to be thrown
Looks like typescript-eslint plugin thinks that variable is not inherited from Error
Steps to reproduce
See 'Describe the bug'
Environment
"@eslint/js": "^9.12.0"
"typescript-eslint": "^8.8.0"
Pull request (optional)
Guidelines
Describe the bug
ESLint rule https://typescript-eslint.io/rules/only-throw-error/ complains about derived classes
Looks like typescript-eslint plugin thinks that variable is not inherited from Error
Steps to reproduce
See 'Describe the bug'
Environment
"@eslint/js": "^9.12.0"
"typescript-eslint": "^8.8.0"
Pull request (optional)