Accessibility
Rules for ARIA and accessibility best practices.
| Rule | Default | Description |
|---|---|---|
aria-attr-conflicts | error | Detect conflicting ARIA and native HTML attributes |
aria-attr-valid-values | warning | Validate ARIA attribute values |
aria-hidden-focusable | error | Detect aria-hidden on focusable elements |
aria-naming-prohibited | error | Detect aria-label on naming-prohibited elements |
aria-role-conflicts | warning | Detect conflicts between explicit and implicit role |
empty-heading | warning | Detect empty heading elements |
fieldset-has-legend | warning | Require legend in fieldset |
label-has-control | error | Detect label without associated control |
landmark-roles | warning | Detect nested landmark roles |
media-has-captions | warning | Require captions/subtitles track on video |
neighbor-popovers | off | Detect non-adjacent popover triggers and targets |
no-abstract-role | error | Detect abstract ARIA roles |
no-ambiguous-navigable-target-names | warning | Detect invalid target name keywords |
no-aria-hidden-body | error | Detect aria-hidden on body element |
no-consecutive-br | warning | Detect consecutive br elements |
no-duplicate-landmark | warning | Require aria-label on duplicate landmarks |
no-dup-class | warning | Detect duplicate class names |
no-positive-tabindex | warning | Detect positive tabindex values |
no-redundant-role | warning | Detect redundant explicit ARIA roles |
no-refer-to-non-existent-id | error | Detect references to non-existent ids |
no-role-on-meta-elements | error | Detect role/aria-* on meta elements |
require-accessible-name | error | Require accessible name on interactive elements |
required-h1 | error | Require h1 element |
table-has-caption | warning | Require caption on data tables |
table-row-column-alignment | warning | Detect inconsistent table column counts |
use-list | warning | Suggest list elements for bullet-prefixed text |
wai-aria | error | Validate WAI-ARIA roles and attributes |
no-aria-disabled-link | warning | Detect aria-disabled on anchor with href |
no-generic-role | warning | Detect explicit role="generic" |
no-aria-checked-mismatch 🔧 | warning | Detect aria-checked on checkbox/radio with checked |
th-has-scope | warning | Require scope on th elements |
no-duplicate-accesskey | warning | Detect duplicate accesskey values |