Skip to content
Bhsd edited this page May 22, 2026 · 6 revisions

⚠️ By default, this rule reports <h1> as warnings.

Examples

Examples of incorrect code for { "h1": 2 }:

=Foo=

Options

html

By default, this rule also reports <h1> tags. You can configure this behavior by passing an object with an html property.

Examples of incorrect code for { "h1": [ 0, { "html": 2 } ] }:

<h1>Foo</h1>

Examples of correct code for { "h1": { "html": 0 } }:

<h1>Foo</h1>

Clone this wiki locally