Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
declare const foo: Readonly<Error>
throw foo
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/no-throw-literal": "error",
},
};
tsconfig
Expected Result
Should not report on Readonly<Error>
Actual Result
False positive report on Readonly<Error>
Expected an error object to be thrown.
Additional Info
Followup for #8011 (comment)
Metadata
Metadata
Assignees
Labels
Something isn't workingSomething isn't workingPlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Issues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginThis will not be worked onThis will not be worked onIssues that are closed as they are working as intendedIssues that are closed as they are working as intended