Skip to main content
Checks for descriptive link text
Rule IDa11y/link-text
CategoryAccessibility
ScopePer-page
Severitywarning
Weight4/10

Solution

Link text should describe the destination, not generic phrases like ‘click here’. Screen reader users often navigate by links, hearing them out of context. Good: ‘View our pricing plans’. Bad: ‘Click here’. If you must use short text, add aria-label for context: Pricing. Empty links are especially problematic - add text or aria-label.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/link-text"]

Disable all Accessibility rules

squirrel.toml
[rules]
disable = ["a11y/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/link-text"]
disable = ["*"]