Skip to content

Commit ebaafe1

Browse files
committed
run format
1 parent 3fcf389 commit ebaafe1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/enforce-button-for-link-with-no-href.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ This rule reports any `Link` from `@primer/react` that does not include an `href
1212
/* eslint primer-react/enforce-button-for-link-with-no-href: "error" */
1313
import {Link} from '@primer/react'
1414

15-
<Link onClick={handleClick}>Save changes</Link>
15+
;<Link onClick={handleClick}>Save changes</Link>
1616
```
1717

1818
```jsx
1919
/* eslint primer-react/enforce-button-for-link-with-no-href: "error" */
2020
import {Link} from '@primer/react'
2121

22-
<Link className="text-right">Learn more</Link>
22+
;<Link className="text-right">Learn more</Link>
2323
```
2424

2525
👍 Examples of **correct** code for this rule:
@@ -28,7 +28,7 @@ import {Link} from '@primer/react'
2828
/* eslint primer-react/enforce-button-for-link-with-no-href: "error" */
2929
import {Link} from '@primer/react'
3030

31-
<Link href="https://primer.style/react">Read the docs</Link>
31+
;<Link href="https://primer.style/react">Read the docs</Link>
3232
```
3333

3434
```jsx

0 commit comments

Comments
 (0)