Skip to content

Commit 586f113

Browse files
committed
update playground sample
1 parent 6dc2673 commit 586f113

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

docs/.vuepress/components/playground-block.vue

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,27 @@ import { DEFAULT_RULES_CONFIG } from "./rules"
4747
const DEFAULT_CODE =
4848
`<!-- Welcome to @ota-meshi/eslint-plugin-svelte -->
4949
<script>
50-
let a = 1;
51-
let b = 2;
52-
// let c = 2;
53-
let string = \`this string contains some <strong>HTML!!!</strong>\`;
54-
let user = {
55-
firstname: 'Ada',
56-
lastname: 'Lovelace'
57-
};
50+
let a = 1;
51+
let b = 2;
52+
// let c = 2;
53+
let string = \`this string contains some <strong>HTML!!!</strong>\`;
54+
let user = {
55+
firstname: 'Ada',
56+
lastname: 'Lovelace'
57+
};
5858
let current = 'foo';
5959
<` +
6060
`/script>
6161
62-
<input type="number" bind:value={a}>
63-
<input type="number" bind:value={b}>
64-
<input type="number" bind:value={c}>
62+
<input
63+
type="number"
64+
bind:value={a}>
65+
<input
66+
type="number"
67+
bind:value={b}>
68+
<input
69+
type="number"
70+
bind:value={c}>
6571
<p>{a} + {b} + {c} = {a + b + c}</p>
6672
6773
<p>{@html string}</p>
@@ -82,7 +88,8 @@ const DEFAULT_CODE =
8288
{/if}
8389
8490
<button
85-
class="{current === 'foo' ? 'selected' : ''}"
91+
type=button
92+
class={current === 'foo' ? 'selected' : ''}
8693
on:click="{() => current = 'foo'}"
8794
>foo</button>
8895
`

0 commit comments

Comments
 (0)