# lodash-template/attribute-value-quote

enforce quotes style of HTML attributes. (ex. 🆗 <div class="abc"> 🆖 <div class='abc'> <div class=abc>)

  • ⚙️ This rule is included in "plugin:lodash-template/recommended-with-html" and "plugin:lodash-template/all".
  • 🔧 The --fix option on the command line (opens new window) can automatically fix some of the problems reported by this rule.

# Rule Details

This rule enforces the quotes style of HTML attributes.

Now loading...

# Options

{
  "lodash-template/attribute-value-quote": ["error", "double" | "single" | "either" | "prefer-double"]
}
  • "double" ... requires double quotes.
  • "single" ... requires single quotes.
  • "either" ... requires double quotes or single quotes.
  • "prefer-double" (default) ... requires double quotes or single quotes. if do not need escape double quotes, requires double quotes.

# Examples for this rule with "single" option:

Now loading...

# Examples for this rule with "either" option:

Now loading...

# Further Reading

# Implementation