Skip to content

Commit eb0750e

Browse files
committed
fixup! test(consistent-selector-style): Added tests for repeated elements
1 parent 2707a31 commit eb0750e

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

packages/eslint-plugin-svelte/tests/fixtures/rules/consistent-selector-style/valid/id-class-type/class01-input.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
<span class="iterated-each">{iter}</span>
1515
{/each}
1616

17-
{#snippet iterated()}
18-
<span class="iterated-snippet">Text 4</span>
19-
{/snippet}
20-
2117
<CustomComponent>
2218
<span class="iterated-component">Text 5</span>
2319
</CustomComponent>
@@ -55,10 +51,6 @@
5551
color: red;
5652
}
5753
58-
.iterated-snippet {
59-
color: red;
60-
}
61-
6254
.iterated-component {
6355
color: red;
6456
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"options": [{ "indent": "tab" }]
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{#snippet iterated()}
2+
<span class="iterated-snippet">Text 4</span>
3+
{/snippet}
4+
5+
<style>
6+
.iterated-snippet {
7+
color: red;
8+
}
9+
</style>

0 commit comments

Comments
 (0)