File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,27 @@ import { DEFAULT_RULES_CONFIG } from "./rules"
47
47
const DEFAULT_CODE =
48
48
` <!-- Welcome to @ota-meshi/eslint-plugin-svelte -->
49
49
<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
+ };
58
58
let current = 'foo';
59
59
<` +
60
60
` /script>
61
61
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}>
65
71
<p>{a} + {b} + {c} = {a + b + c}</p>
66
72
67
73
<p>{@html string}</p>
@@ -82,7 +88,8 @@ const DEFAULT_CODE =
82
88
{/if}
83
89
84
90
<button
85
- class="{current === 'foo' ? 'selected' : ''}"
91
+ type=button
92
+ class={current === 'foo' ? 'selected' : ''}
86
93
on:click="{() => current = 'foo'}"
87
94
>foo</button>
88
95
`
You can’t perform that action at this time.
0 commit comments