Vize

HTML rules

Follow each rule for purpose, severity, scope, configuration, and Bad/Good examples. The complete catalogue keeps all examples and current support boundaries on one page.

Configure lint.vize.rules and run vp run lint with the Vite+ helper. Check each page for type-aware, filename, or additional-configuration prerequisites.

Rule Examples Purpose
html/deprecated-attr Bad · Good Disallow deprecated HTML attributes
html/deprecated-element Bad · Good Disallow deprecated HTML elements
html/id-duplication Bad · Good Disallow duplicate element IDs
html/no-consecutive-br Bad · Good Disallow consecutive <br> elements
html/no-dupe-style-properties Bad · Good Disallow duplicate properties in inline style attributes
html/no-duplicate-class Bad · Good Disallow duplicate class names in a static class attribute
html/no-duplicate-dt Bad · Good Disallow duplicate <dt> names in <dl>
html/no-empty-palpable-content Bad · Good Disallow empty elements that expect visible content
html/require-datetime Bad · Good Require datetime attribute on <time> element

All rules · Rule Options · ESLint migration map · Project checks

For nesting after components are composed, see html/cross-component-nesting.