Boolean attribute style (attribute-boolean-style)

Require a specific style when writing boolean attributes.

Rule details

Examples of incorrect code for this rule:

<input required="">
<input required="required">
1:8 - Attribute "required" should omit value
2:8 - Attribute "required" should omit value

Examples of correct code for this rule:

<input required>

Options

This rule takes an optional object:

{
    "style": "omit"
}

Style