[no-use-before-define]: typedefs option doesn't work #249
Labels
bug
Something isn't working
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
Should work according to docs
Actual Result
Doesn't work at all
Additional Info
Also dunno if this is considered within the implementation, but there is a common pattern in React to get Props/State types from implementation by leveraging
typeof
. So iftypedefs
is set tofalse
this should not raise any error:Versions
@typescript-eslint/eslint-plugin
1.3.0
@typescript-eslint/parser
X.Y.Z
TypeScript
3.3.3
ESLint
5.12
node
8.15
npm
X.Y.Z
The text was updated successfully, but these errors were encountered: