Skip to main content

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

Rule Details

This rule extends the base eslint/quotes rule. It adds support for TypeScript features which allow quoted names, but not backtick quoted names.

How to use

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

Options

See eslint/quotes options.

Taken with โค๏ธ from ESLint core

Attributes

  • โœ… Recommended
  • ๐Ÿ”ง Fixable
  • ๐Ÿ’ญ Requires type information