JS.TS.QUOTES

Enforce the consistent use of either backticks, double, or single quotes

Rule Details

This rule extends the base eslint/quotes (https://eslint.org/docs/rules/quotes) rule. It adds support for TypeScript features which allow quoted names, but not backtick quoted names.

How to Use

Copy
{
  // note you must disable the base rule as it can report incorrect errors
  "quotes": "off",
  "@typescript-eslint/quotes": ["error"]
}

Options

See eslint/quotes options (https://eslint.org/docs/rules/quotes#options).

The content on this page is adapted from the ESLint User Guide. Copyright © OpenJS Foundation and other contributors, www.openjsf.org. All rights reserved. https://eslint.org/docs/rules/