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"
4747const 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`
You can’t perform that action at this time.
0 commit comments