Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
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 havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
Repro Code
declareconstf:<T>(x:T)=>anyf<(number|string)[]>(['a',1])
ESLint Config
{"rules":{"@typescript-eslint/no-extra-parens":"error"}}
tsconfig
{"compilerOptions": {"strict":true }}
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 |