no-html-links
Ensure that the Docusaurus <Link>
component is used instead of <a>
tags.
The <Link>
component has prefetching and preloading built-in. ๋ํ ๋น๋ ์ ๋์ด์ง ๋งํฌ๋ฅผ ๊ฐ์งํ๊ณ ๋ํ์ฌ์ฐ๋ฃจ์ค๊ฐ ์ฌ์ดํธ ๊ตฌ์กฐ๋ฅผ ๋ ์ ์ดํดํ ์ ์๊ฒ ๋์์ค๋๋ค.
Rule Detailsโ
Examples of incorrect code for this rule:
<a href="/page">go to page!</a>
<a href="https://x.com/docusaurus" target="_blank">X</a>
Examples of correct code for this rule:
import Link from '@docusaurus/Link'
<Link to="/page">go to page!</Link>
<Link to="https://x.com/docusaurus">X</Link>
Rule Configurationโ
์ค์ ํ ์ ์๋ ํ๋
์ต์ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ค๋ช |
---|---|---|---|
ignoreFullyResolved | boolean | false | Set to true will not report any <a> tags with absolute URLs including a protocol. |