Skip to content

Commit 31556cc

Browse files
committed
run format
1 parent 3fcf389 commit 31556cc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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" */
1313
import {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" */
2019
import {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" */
2927
import {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

0 commit comments

Comments
 (0)