mirror of https://github.com/sveltejs/svelte
parent
9813526ba4
commit
5fc47f93d4
@ -0,0 +1,21 @@
|
||||
<svelte:options runes />
|
||||
|
||||
<!-- don't warn on these -->
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
<p class="{foo}"></p>
|
||||
<!-- prettier-ignore -->
|
||||
<svelte:element this={foo} class="{foo}"></svelte:element>
|
||||
|
||||
<!-- warn on these -->
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
<Component class="{foo}" />
|
||||
<!-- prettier-ignore -->
|
||||
<svelte:component this={foo} class="{foo}" />
|
||||
<!-- prettier-ignore -->
|
||||
{#if foo}
|
||||
<svelte:self class="{foo}" />
|
||||
{/if}
|
||||
<!-- prettier-ignore -->
|
||||
<custom-element class="{foo}"></custom-element>
|
||||
@ -0,0 +1,50 @@
|
||||
[
|
||||
{
|
||||
"code": "attribute_quoted",
|
||||
"message": "Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes.",
|
||||
"start": {
|
||||
"column": 11,
|
||||
"line": 13
|
||||
},
|
||||
"end": {
|
||||
"column": 24,
|
||||
"line": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "attribute_quoted",
|
||||
"message": "Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes.",
|
||||
"start": {
|
||||
"column": 29,
|
||||
"line": 15
|
||||
},
|
||||
"end": {
|
||||
"column": 42,
|
||||
"line": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "attribute_quoted",
|
||||
"message": "Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes.",
|
||||
"start": {
|
||||
"column": 14,
|
||||
"line": 18
|
||||
},
|
||||
"end": {
|
||||
"column": 27,
|
||||
"line": 18
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "attribute_quoted",
|
||||
"message": "Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes.",
|
||||
"start": {
|
||||
"column": 16,
|
||||
"line": 21
|
||||
},
|
||||
"end": {
|
||||
"column": 29,
|
||||
"line": 21
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Reference in new issue