Skip to content

Commit

Permalink
chore: fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Oct 1, 2023
1 parent 7254413 commit 5b1b28f
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions docs/rules/max-attributes-per-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ There is a configurable number of attributes that are acceptable in one-line cas

<ESLintCodeBlock fix>

<!-- prettier-ignore-start -->
<!--eslint-skip-->

```svelte
Expand All @@ -32,10 +33,22 @@ There is a configurable number of attributes that are acceptable in one-line cas
</script>
<!-- ✓ GOOD -->
<input type="text" bind:value={text} {maxlength} {...attrs} readonly size="20" />
<button type="button" on:click={click} {maxlength} {...attrs} disabled data-my-data="foo">
CLICK ME!
</button>
<input
type="text"
bind:value={text}
{maxlength}
{...attrs}
readonly
size="20"
/>
<button
type="button"
on:click={click}
{maxlength}
{...attrs}
disabled
data-my-data="foo"
>
<!-- ✗ BAD -->
<input type="text" bind:value={text} {maxlength} {...attrs} readonly />
Expand All @@ -44,6 +57,8 @@ There is a configurable number of attributes that are acceptable in one-line cas

</ESLintCodeBlock>

<!-- prettier-ignore-end -->

## :wrench: Options

```json
Expand Down

0 comments on commit 5b1b28f

Please sign in to comment.