Ir para o conteúdo principal
Version: 3.1.1


Ensure that the Docusaurus <Link> component is used instead of <a> tags.

The <Link> component has prefetching and preloading built-in. It also does build-time broken link detection, and helps Docusaurus understand your site's structure better.

Rule Details

Examples of incorrect code for this rule:

<a href="/page">go to page!</a>

<a href="" target="_blank">Twitter</a>

Examples of correct code for this rule:

import Link from '@docusaurus/Link'

<Link to="/page">go to page!</Link>

<Link to="">Twitter</Link>

Rule Configuration

Campos aceitos:

ignoreFullyResolvedbooleanfalseSet to true will not report any <a> tags with absolute URLs including a protocol.