Closed
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 f: <T>(x: T) => any
f<(number | string)[]>(['a', 1])
ESLint Config
{
"rules": {
"@typescript-eslint/no-extra-parens": "error"
}
}
tsconfig
Expected Result
No error
Actual Result
@typescript-eslint/no-extra-parens: Unnecessary parentheses around expression. 3:23 - 3:24
Additional Info
Related to #2314
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.33.1 |
@typescript-eslint/parser |
5.33.1 |
TypeScript |
4.7.4 |
ESLint |
8.22.0 |
node |
16.16.0 |