-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
With configuration:
'@typescript-eslint/quotes': [`error`, `backtick`],
'@typescript-eslint/prefer-literal-enum-member': `error`,
And enum:
export enum SomeEnum {
first = `first`,
second = `second`,
}
You get error Explicit enum value must only be a literal value (string, number, boolean, etc).
because of backticks. Changing them to other quotes fixes issue, but then @typescript-eslint/quotes rule prompts with error.
Expected Result
No error, linter should accept backticks for enums explicit value.
Actual Result
Explicit enum value must only be a literal value (string, number, boolean, etc).
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin