Skip to content

Accessibility

Rules for ARIA and accessibility best practices.

RuleDefaultDescription
aria-attr-conflictserrorDetect conflicting ARIA and native HTML attributes
aria-attr-valid-valueswarningValidate ARIA attribute values
aria-hidden-focusableerrorDetect aria-hidden on focusable elements
aria-naming-prohibitederrorDetect aria-label on naming-prohibited elements
aria-role-conflictswarningDetect conflicts between explicit and implicit role
empty-headingwarningDetect empty heading elements
fieldset-has-legendwarningRequire legend in fieldset
label-has-controlerrorDetect label without associated control
landmark-roleswarningDetect nested landmark roles
media-has-captionswarningRequire captions/subtitles track on video
neighbor-popoversoffDetect non-adjacent popover triggers and targets
no-abstract-roleerrorDetect abstract ARIA roles
no-ambiguous-navigable-target-nameswarningDetect invalid target name keywords
no-aria-hidden-bodyerrorDetect aria-hidden on body element
no-consecutive-brwarningDetect consecutive br elements
no-duplicate-landmarkwarningRequire aria-label on duplicate landmarks
no-dup-classwarningDetect duplicate class names
no-positive-tabindexwarningDetect positive tabindex values
no-redundant-rolewarningDetect redundant explicit ARIA roles
no-refer-to-non-existent-iderrorDetect references to non-existent ids
no-role-on-meta-elementserrorDetect role/aria-* on meta elements
require-accessible-nameerrorRequire accessible name on interactive elements
required-h1errorRequire h1 element
table-has-captionwarningRequire caption on data tables
table-row-column-alignmentwarningDetect inconsistent table column counts
use-listwarningSuggest list elements for bullet-prefixed text
wai-ariaerrorValidate WAI-ARIA roles and attributes
no-aria-disabled-linkwarningDetect aria-disabled on anchor with href
no-generic-rolewarningDetect explicit role="generic"
no-aria-checked-mismatch 🔧warningDetect aria-checked on checkbox/radio with checked
th-has-scopewarningRequire scope on th elements
no-duplicate-accesskeywarningDetect duplicate accesskey values

Released under the MIT License.