@html-eslint/quotes
"
) or single('
)
Enforce consistent quoting attributes with double(Rule Details
This rule enforces the consistent use of double("
) or single('
) qoutes for element attributes.
Options
This rule has two options
"double"
(default): requires the use of double quotes("
)."single"
: requires the use of single quotes('
)
"double"
Examples of incorrect code for this rule with the default "double"
option:
<div id='foo'> </div>
<div id=foo> </div>
Examples of correct code for this rule with the default "double"
option:
<div id="foo"> </div>
"single"
Examples of incorrect code for this rule with the "single"
option:
<div id="foo"></div>
<div id="foo"></div>
Examples of correct code for this rule with the default "single"
option:
<div id="foo"></div>