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.

False positive no-unused-vars with string enum #582

Closed
@micaelmbagira

Description

@micaelmbagira

What version of TypeScript are you using?
^3.1.6

What version of typescript-eslint-parser are you using?
^21.0.2

What code were you trying to parse?

export enum State {
  START = 'start',
  END = 'end',
}

console.log(State.START)

What did you expect to happen?
No errors

What happened?
I have the following error

  2:3  error  'START' is assigned a value but never used  no-unused-vars
  3:3  error  'END' is assigned a value but never used    no-unused-vars

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions