[no-use-before-define] False positive on type guard cast #2527
Comments
This is a fun bug because technically So the rule is seeing a "value" variable with no initialisation and reporting. Should be a pretty easy fix. |
phaux
added a commit
to phaux/typescript-eslint
that referenced
this issue
Sep 28, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Repro
Expected Result
No error,
value
is part of the type, it's not being "used".Actual Result
Additional Info
Versions
@typescript-eslint/eslint-plugin
4.1.0
@typescript-eslint/parser
4.1.0
TypeScript
4.0.2
ESLint
7.2.0
node
12.18.1
The text was updated successfully, but these errors were encountered: