[no-use-before-define] Not considering hoisting #221
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for maintainers to take a look
wontfix
This will not be worked on
The no-use-before-define rule is not considering hoisting, therefore giving me errors, when declaring a function below its usage.
Repro
Expected Result
No linting error.
Actual Result
Linting error: [eslint] 'fn' was used before it was defined. [@typescript-eslint/no-use-before-define]
Versions
@typescript-eslint/eslint-plugin
1.2.0
@typescript-eslint/parser
1.2.0
TypeScript
3.2.4
ESLint
5.13.0
node
8.15.0
The text was updated successfully, but these errors were encountered: