File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,21 @@ This rule reports any `Link` from `@primer/react` that does not include an `href
1111``` jsx
1212/* eslint primer-react/enforce-button-for-link-with-no-href: "error" */
1313import {Link } from ' @primer/react'
14-
15- < Link onClick= {handleClick}> Save changes< / Link>
14+ ;< Link onClick= {handleClick}> Save changes< / Link>
1615```
1716
1817``` jsx
1918/* eslint primer-react/enforce-button-for-link-with-no-href: "error" */
2019import {Link } from ' @primer/react'
21-
22- < Link className= " text-right" > Learn more< / Link>
20+ ;< Link className= " text-right" > Learn more< / Link>
2321```
2422
2523👍 Examples of ** correct** code for this rule:
2624
2725``` jsx
2826/* eslint primer-react/enforce-button-for-link-with-no-href: "error" */
2927import {Link } from ' @primer/react'
30-
31- < Link href= " https://primer.style/react" > Read the docs< / Link>
28+ ;< Link href= " https://primer.style/react" > Read the docs< / Link>
3229```
3330
3431``` jsx
You can’t perform that action at this time.
0 commit comments