This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Class fields cause false positive no-undef #471
Closed
Description
What version of TypeScript are you using?
2.7.2
, 2.8.1
What version of typescript-eslint-parser
are you using?
15.0.0
What code were you trying to parse?
class X {
field = {} // [eslint] 'field' is not defined. (no-undef)
}
What did you expect to happen?
I did not expect any error
What happened?
I get [eslint] 'field' is not defined. (no-undef)