[no-unused-vars] Inconsisitent behaviour with shadowed type name #696
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
scope analyser
Issues that are caused by bugs/incomplete cases in the scope analyser
Milestone
Repro
Expected Result
All pass the rule or none of them pass the rule
Actual Result
Import is not OK, but the rest is fine even though the first parameter is not used.
When type node is visited, the parameter is marked as used..😰 see: #363
Additional Info
I know it's not possible to implement this rule without type information which will slow down the linting a lot.. But it should be possible to make the behavior consistent?
Versions
@typescript-eslint/eslint-plugin
X.Y.Z
@typescript-eslint/parser
X.Y.Z
TypeScript
X.Y.Z
ESLint
X.Y.Z
node
X.Y.Z
npm
X.Y.Z
The text was updated successfully, but these errors were encountered: