Skip to main content

no-boolean-attr-value

info

🔧 This rule supports auto-fix with the --fix option.

Warn when it specified any value to the boolean attribute.

info

Not included in any preset: HTML permits a boolean attribute to carry any value (only its presence matters), so disallowing one is purely a project style preference.

❌ Examples of incorrect code for this rule

<input type="text" required="required" />

✅ Examples of correct code for this rule

<input type="text" required />

Interface

{
"no-boolean-attr-value": boolean
}

Default Severity

warning