-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix tests to follow latest Svelte 5 (#751)
I just added Node 22 but CI does not pass in #750 sveltejs/svelte#11327 changes warning messages, so I mainly copied exist tests and optimized for Svelte 5.
- Loading branch information
1 parent
ade400a
commit 60e784e
Showing
137 changed files
with
739 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/fixtures/rules/no-unused-svelte-ignore/invalid/html-comment-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<!-- svelte-ignore a11y_autofocus a11y_missing_attribute --> | ||
<img src="foo" alt="Foo" /> | ||
|
||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<!-- svelte-ignore a11y_autofocus a11y_missing_attribute --> | ||
<img src="foo" alt="Foo" autofocus /> |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/invalid/html-comment-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/fixtures/rules/no-unused-svelte-ignore/invalid/html-comment-svelte4-errors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 1 | ||
column: 20 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 1 | ||
column: 35 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 4 | ||
column: 35 | ||
suggestions: null |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/rules/no-unused-svelte-ignore/invalid/html-comment-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<img src="foo" alt="Foo" /> | ||
|
||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<img src="foo" alt="Foo" autofocus /> |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/invalid/html-comment-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore01-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.../fixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore01-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
8 changes: 8 additions & 0 deletions
8
...ixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore01-svelte4-errors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 4 | ||
column: 22 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 4 | ||
column: 56 | ||
suggestions: null |
9 changes: 9 additions & 0 deletions
9
...xtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore01-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
{#if true} | ||
A | ||
<!-- svelte-ignore a11y-label-has-associated-control a11y-no-noninteractive-tabindex --> | ||
{:else} | ||
<label tabindex="0">Click</label> | ||
<ul tabindex="0"></ul> | ||
{/if} | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...s/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore01-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore02-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.../fixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore02-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
8 changes: 8 additions & 0 deletions
8
...ixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore02-svelte4-errors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 4 | ||
column: 22 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 4 | ||
column: 56 | ||
suggestions: null |
9 changes: 9 additions & 0 deletions
9
...xtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore02-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
{#each [] as e} | ||
A | ||
<!-- svelte-ignore a11y-label-has-associated-control a11y-no-noninteractive-tabindex --> | ||
{:else} | ||
<label tabindex="0">Click</label> | ||
<ul tabindex="0"></ul> | ||
{/each} | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...s/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore02-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
6 changes: 3 additions & 3 deletions
6
tests/fixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore03-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.../fixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore03-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
24 changes: 24 additions & 0 deletions
24
...ixtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore03-svelte4-errors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 3 | ||
column: 22 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 3 | ||
column: 56 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 7 | ||
column: 22 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 7 | ||
column: 56 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 15 | ||
column: 22 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 15 | ||
column: 56 | ||
suggestions: null |
20 changes: 20 additions & 0 deletions
20
...xtures/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore03-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div> | ||
{#await Promise.resolve(42)} | ||
<!-- svelte-ignore a11y-label-has-associated-control a11y-no-noninteractive-tabindex --> | ||
{:then name} | ||
<label tabindex="0">Click</label> | ||
<ul tabindex="0"></ul> | ||
<!-- svelte-ignore a11y-label-has-associated-control a11y-no-noninteractive-tabindex --> | ||
{:catch name} | ||
<label tabindex="0">Click</label> | ||
<ul tabindex="0"></ul> | ||
{/await} | ||
</div> | ||
<div> | ||
{#await Promise.resolve(42)} | ||
<!-- svelte-ignore a11y-label-has-associated-control a11y-no-noninteractive-tabindex --> | ||
{:then name} | ||
<label tabindex="0">Click</label> | ||
<ul tabindex="0"></ul> | ||
{/await} | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...s/rules/no-unused-svelte-ignore/invalid/invalid-svelte-ignore03-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/rules/no-unused-svelte-ignore/invalid/script-comment01-errors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/invalid/transform-test-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/fixtures/rules/no-unused-svelte-ignore/invalid/transform-test-svelte4-errors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 9 | ||
column: 20 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 9 | ||
column: 35 | ||
suggestions: null | ||
- message: svelte-ignore comment is used, but not warned | ||
line: 16 | ||
column: 20 | ||
suggestions: null |
26 changes: 26 additions & 0 deletions
26
tests/fixtures/rules/no-unused-svelte-ignore/invalid/transform-test-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script> | ||
</script> | ||
|
||
<!-- ✓ GOOD --> | ||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<img src="https://example.com/img.png" autofocus /> | ||
|
||
<!-- ✗ BAD --> | ||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<img src="https://example.com/img.png" alt="Foo" /> | ||
|
||
<div class="foo"> | ||
<div class="bar" /> | ||
</div> | ||
|
||
<!-- svelte-ignore css-unused-selector --> | ||
<style lang="postcss"> | ||
.foo { | ||
height: 20px; | ||
width: 20px; | ||
& .bar { | ||
height: 10px; | ||
width: 10px; | ||
} | ||
} | ||
</style> |
3 changes: 3 additions & 0 deletions
3
...s/fixtures/rules/no-unused-svelte-ignore/invalid/transform-test-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/no-unused-svelte-ignore/valid/element-ignore01-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!-- svelte-ignore a11y-no-noninteractive-tabindex --> | ||
<!-- svelte-ignore a11y_no_noninteractive_tabindex --> | ||
<span tabindex="0"> | ||
<span class="element"></span> | ||
</span> |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/valid/element-ignore01-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/rules/no-unused-svelte-ignore/valid/element-ignore01-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!-- svelte-ignore a11y-no-noninteractive-tabindex --> | ||
<span tabindex="0"> | ||
<span class="element"></span> | ||
</span> |
3 changes: 3 additions & 0 deletions
3
...s/fixtures/rules/no-unused-svelte-ignore/valid/element-ignore01-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/no-unused-svelte-ignore/valid/html-comment-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<!-- svelte-ignore a11y_autofocus a11y_missing_attribute --> | ||
<img src="foo" autofocus /> |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/valid/html-comment-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
2 changes: 2 additions & 0 deletions
2
tests/fixtures/rules/no-unused-svelte-ignore/valid/html-comment-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!-- svelte-ignore a11y-autofocus a11y-missing-attribute --> | ||
<img src="foo" autofocus /> |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/valid/html-comment-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
4 changes: 2 additions & 2 deletions
4
tests/fixtures/rules/no-unused-svelte-ignore/valid/script-comment-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<script> | ||
let count = $state(0); | ||
let doubled = $derived(count * 2); | ||
// svelte-ignore static-state-reference | ||
// svelte-ignore state_referenced_locally | ||
console.log(count); | ||
// svelte-ignore static-state-reference | ||
// svelte-ignore state_referenced_locally | ||
console.log(doubled); | ||
</script> |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore01-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore01-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore01-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- svelte-ignore a11y-label-has-associated-control a11y-no-noninteractive-tabindex --> | ||
<div class="dropdown"> | ||
<label tabindex="0">Click</label> | ||
<ul tabindex="0"></ul> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore01-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore02-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore02-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": ">=5.0.0-0" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore02-svelte4-input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- svelte-ignore a11y-label-has-associated-control a11y-no-noninteractive-tabindex --> | ||
TEXT | ||
<div class="dropdown"> | ||
<label tabindex="0">Click</label> | ||
<ul tabindex="0"></ul> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore02-svelte4-requirements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"svelte": "^3.0.0 || ^4.0.0" | ||
} |
Oops, something went wrong.