Bug: [array-type] rule mistaking a generic type with the actual type because it has the same name (shadowing). #11287
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for team members to take a look
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.8.2&fileType=.ts&code=GYVwdgxgLglg9mABMMAeAggJ0wQwJ6ICmAHlIWACYDOimhOFCANgeANZhwDuYA2gLoA%2BABQ5s%2BAFyIsuPAEpEAbwCwAKES1CUEJiRjZAbjUBfI6qA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6AQ2mncNqNPRREXAPbRI4MAF8QUoA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
No errors.
Actual Result
Error on the generic type parameter.
Additional Info
No response
The text was updated successfully, but these errors were encountered: