Skip to content

HTML Rules

Below the list of rules supported by Biome, divided by group. Here’s a legend of the emojis:

  • The icon indicates that the rule is part of the recommended rules.
  • The icon indicates that the rule provides a code action (fix) that is safe to apply.
  • The icon indicates that the rule provides a code action (fix) that is unsafe to apply.
  • The icon indicates that the rule has been implemented and scheduled for the next release.
Rule nameDescriptionProperties
noAccessKeyEnforce that the accesskey attribute is not used on any HTML element.
noDistractingElementsEnforces that no distracting elements are used.
noHeaderScopeThe scope prop should be used only on <th> elements.
useButtonTypeEnforces the usage and validity of the attribute type for the element button
useHtmlLangEnforce that html element has lang attribute.
Rule nameDescriptionProperties
noSyncScriptsPrevent the usage of synchronous scripts.
noVueVIfWithVForDisallow using v-if and v-for directives on the same element.
useVueHyphenatedAttributesEnforce hyphenated (kebab-case) attribute names in Vue templates.
useVueValidVBindForbids v-bind directives with missing arguments or invalid modifiers.
useVueValidVElseEnforce valid usage of v-else.
useVueValidVElseIfEnforce valid v-else-if directives.
useVueValidVHtmlEnforce valid v-html directives.
useVueValidVIfEnforces valid v-if usage for Vue templates.
useVueValidVOnEnforce valid v-on directives with proper arguments, modifiers, and handlers.
useVueValidVTextEnforce valid v-text Vue directives.

Missing a rule? Help us by contributing to the analyzer or create a rule suggestion here.