Skip to content
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
@ackvf

Description

@ackvf

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions