Skip to content

Commit 5b1b28f

Browse files
committed
chore: fix doc
1 parent 7254413 commit 5b1b28f

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

docs/rules/max-attributes-per-line.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ There is a configurable number of attributes that are acceptable in one-line cas
2424

2525
<ESLintCodeBlock fix>
2626

27+
<!-- prettier-ignore-start -->
2728
<!--eslint-skip-->
2829

2930
```svelte
@@ -32,10 +33,22 @@ There is a configurable number of attributes that are acceptable in one-line cas
3233
</script>
3334
3435
<!-- ✓ GOOD -->
35-
<input type="text" bind:value={text} {maxlength} {...attrs} readonly size="20" />
36-
<button type="button" on:click={click} {maxlength} {...attrs} disabled data-my-data="foo">
37-
CLICK ME!
38-
</button>
36+
<input
37+
type="text"
38+
bind:value={text}
39+
{maxlength}
40+
{...attrs}
41+
readonly
42+
size="20"
43+
/>
44+
<button
45+
type="button"
46+
on:click={click}
47+
{maxlength}
48+
{...attrs}
49+
disabled
50+
data-my-data="foo"
51+
>
3952
4053
<!-- ✗ BAD -->
4154
<input type="text" bind:value={text} {maxlength} {...attrs} readonly />
@@ -44,6 +57,8 @@ There is a configurable number of attributes that are acceptable in one-line cas
4457

4558
</ESLintCodeBlock>
4659

60+
<!-- prettier-ignore-end -->
61+
4762
## :wrench: Options
4863

4964
```json

0 commit comments

Comments
 (0)