Skip to main content

attr-value-quotes

Warns if the attribute value is not quoted.

❌ Examples of incorrect code for this rule

<div data-attr=value></div>
<div data-attr='value'></div>
<!-- "attr-value-quotes": "single" -->
<div data-attr=value></div>
<div data-attr="value"></div>

✅ Examples of correct code for this rule

<div data-attr="value"></div>
<!-- "attr-value-quotes": "single" -->
<div data-attr='value'></div>

Interface

{
"attr-value-quotes": "double" | "single"
}
ValueDefaultDescription
"double"Warns if the attribute value is not quoted on double quotation mark.
"single"Warns if the attribute value is not quoted on single quotation mark.

Default Severity

warning