Skip to content

anchorAmbiguousText

Reports anchor elements with ambiguous text that doesn't describe the link destination.

✅ This rule is included in the jsx logical preset.

Anchor elements should have descriptive text that clearly indicates where the link leads or what action it performs. Ambiguous text like “click here”, “here”, “link”, or “read more” doesn’t provide meaningful context for users, especially those using screen readers who often navigate by jumping between links.

This rule checks that anchor elements don’t contain common ambiguous phrases that fail to describe the link destination.

<a href="/about">click here</a>
<a href="/docs">here</a>
<a href="/contact">link</a>
<a href="/pricing">read more</a>

If you use a framework that automatically adds sufficient context around links you might choose to disable this rule.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.