Skip to main content

quotes

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

Attributes

  • Included in configs
    • ✅ Recommended
    • 🔒 Strict
  • Fixable
    • 🔧 Automated Fixer
    • 💡 Suggestion Fixer
  • 💭 Requires type information

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

.eslintrc.cjs
module.exports = {
// Note: you must disable the base rule as it can report incorrect errors
"quotes": "off",
"@typescript-eslint/quotes": "warn"
};

Options

See eslint/quotes options.

Taken with ❤️ from ESLint core

Resources