Skip to content

Commit b37cc88

Browse files
committed
Update doc
1 parent d2fb59c commit b37cc88

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/rules/html-quotes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ This rule enforces the quotes style of HTML attributes.
2525
<eslint-code-block fix>
2626

2727
<!--eslint-skip-->
28-
28+
<!-- prettier-ignore -->
2929
```html
3030
<script>
3131
/* eslint @ota-meshi/svelte/html-quotes: "error" */
3232
</script>
3333

3434
<!-- ✓ GOOD -->
35-
<input type="text" bind:value="{text}" />
36-
<img src="{src}" alt="{name} dances." />
35+
<input type="text" bind:value={text} />
36+
<img {src} alt="{name} dances." />
3737

3838
<!-- ✗ BAD -->
39-
<input type="text" bind:value="{text}" />
40-
<img src="{src}" alt="{name} dances." />
39+
<input type=text bind:value="{text}" />
40+
<img src="{src}" alt='{name} dances.' />
4141
```
4242

4343
</eslint-code-block>

0 commit comments

Comments
 (0)