Base rule extension: [prefer-promise-reject-errors] #7687
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: new base rule extension
New base rule extension required to handle a TS specific case
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Proposal Please Confirm You Have Done The Following...
My proposal is suitable for this project
Link to the base rule
https://eslint.org/docs/latest/rules/prefer-promise-reject-errors
Description
the
prefer-promise-reject-errors
rule should be extended as the base rule does not catch cases where the value is not a literalFail
Pass
Additional Info
originally raised #7673 and eslint/eslint#17592 for
no-throw-literal
because i wasn't aware there was already a base rule for thisThe text was updated successfully, but these errors were encountered: