Bug: [no-extra-parens] False positive when calling generic function with type parameter with parentheses #5488
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
formatting
Related to whitespace/bracket formatting. We strongly recommend you use a formatter instead.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.7.4&jsx=true&sourceType=module&code=CYUwxgNghgTiAEYD2A7AzgF3gMwFzwB4AVAPgAoAPfIgSngF4T4oUBPAWACgvsCyUArgFsARiBjwAPvEwwAligDmNANoBdcioDkULQBp4ARjU0gA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge3oA99oBDWsX7RETVBkiJo0DtEjgwAXxBKgA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eFYDAruuGAL4g9A
Repro Code
ESLint Config
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
@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
The text was updated successfully, but these errors were encountered: