Skip to content

[@typescript-eslint/quotes] False Positive in interface #1309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RyanHirsch opened this issue Dec 5, 2019 · 0 comments · Fixed by #1311
Closed

[@typescript-eslint/quotes] False Positive in interface #1309

RyanHirsch opened this issue Dec 5, 2019 · 0 comments · Fixed by #1311
Labels
bug Something isn't working good first issue Good for newcomers has pr there is a PR raised to close this package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@RyanHirsch
Copy link

[@typescript-eslint/quotes] False positive in Typescript Interface

Repro

{
  "rules": {
    "quotes": "off",
    "@typescript-eslint/quotes": ["error", "backtick"],
  }
}
export interface CardAttributes {
  id: number;
  name: string;
  creator: string;
  description: string;
  'is-joined': boolean;
  'is-joining': boolean;
  'is-approval-required': boolean;
}

Expected Result
No Errors

Actual Result
6:3 error Strings must use backtick @typescript-eslint/quotes
7:3 error Strings must use backtick @typescript-eslint/quotes
8:3 error Strings must use backtick @typescript-eslint/quotes

Versions

package version
@typescript-eslint/eslint-plugin 2.10.0
@typescript-eslint/parser 2.10.0
TypeScript 3.7.2
ESLint 6.1.0
node 10.16.3
@RyanHirsch RyanHirsch added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for team members to take a look labels Dec 5, 2019
@RyanHirsch RyanHirsch changed the title [@typescript-eslint/quotes] False Positive in Interface [@typescript-eslint/quotes] False Positive in interface Dec 5, 2019
@bradzacher bradzacher added bug Something isn't working good first issue Good for newcomers and removed triage Waiting for team members to take a look labels Dec 5, 2019
@armano2 armano2 added the has pr there is a PR raised to close this label Dec 16, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers has pr there is a PR raised to close this package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants