-
-
Notifications
You must be signed in to change notification settings - Fork 48
chore: fix tests to follow latest Svelte 5 #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -128,7 +128,8 @@ const config = [ | |
}, | ||
rules: { | ||
'n/file-extension-in-import': 'off', | ||
'n/no-unsupported-features/es-syntax': 'off' | ||
'n/no-unsupported-features/es-syntax': 'off', | ||
'n/no-unsupported-features/es-builtins': 'off' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I needed to disable |
||
} | ||
}, | ||
{ | ||
|
4 changes: 2 additions & 2 deletions
4
tests/fixtures/rules/no-unused-svelte-ignore/invalid/html-comment-input.svelte
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I resolved the warning.