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
See Playground link above
ESLint Config
See Playground link above
tsconfig
See Playground link above
Expected Result
I expected both theHTMLElement
generic and theHTMLElement
type declaration to both be an error as they both shadow the global type of the same name. The type declaration does show an error (actually a TypeScript compiler error) but there is no error for shadowing the type via a generic. I'd expectno-shadow
to catch shadowing with generics.
Actual Result
Only types which are defined in the module scope are identified as shadowing when used in generic declarations.
Additional Info
No response
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 5.42.1 |
@typescript-eslint/parser | 5.42.1 |
TypeScript | 4.8.4 |
ESLint | 8.15.0 |