Skip to main content

link-label-min-length

A rule from WCAG https://www.w3.org/WAI/WCAG22/Techniques/general/G91.html. Enforce a minimum length for a link text.

Given the following rule setting:

"link-label-min-length": ["error", 4]

The following patterns are considered violations:

  <a>A</a
  <a aria-label="A"></a

The following patterns are not considered violations:

  <a>A link</a
  <a aria-label="A link"></a>