-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update
svelte-eslint-parser
to v1.0.0-next.4 (#956)
- Loading branch information
1 parent
9568782
commit 157ee1f
Showing
16 changed files
with
96 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'eslint-plugin-svelte': patch | ||
--- | ||
|
||
chore: update `svelte-eslint-parser` to v1.0.0-next.4 |
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
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: 3 additions & 1 deletion
4
packages/eslint-plugin-svelte/tests/fixtures/rules/valid-compile/invalid/a11y01-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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
- message: '`<img>` element should have an alt attribute(a11y_missing_attribute)' | ||
- message: |- | ||
`<img>` element should have an alt attribute | ||
https://svelte.dev/e/a11y_missing_attribute(a11y_missing_attribute) | ||
line: 5 | ||
column: 1 | ||
suggestions: null |
15 changes: 9 additions & 6 deletions
15
...gin-svelte/tests/fixtures/rules/valid-compile/invalid/invalid-svelte-ignore01-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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 6 | ||
column: 3 | ||
suggestions: null | ||
- message: A form label must be associated with a | ||
control(a11y_label_has_associated_control) | ||
- message: |- | ||
A form label must be associated with a control | ||
https://svelte.dev/e/a11y_label_has_associated_control(a11y_label_has_associated_control) | ||
line: 6 | ||
column: 3 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 7 | ||
column: 3 | ||
suggestions: null |
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
15 changes: 9 additions & 6 deletions
15
...gin-svelte/tests/fixtures/rules/valid-compile/invalid/invalid-svelte-ignore02-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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 6 | ||
column: 3 | ||
suggestions: null | ||
- message: A form label must be associated with a | ||
control(a11y_label_has_associated_control) | ||
- message: |- | ||
A form label must be associated with a control | ||
https://svelte.dev/e/a11y_label_has_associated_control(a11y_label_has_associated_control) | ||
line: 6 | ||
column: 3 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 7 | ||
column: 3 | ||
suggestions: null |
53 changes: 33 additions & 20 deletions
53
...gin-svelte/tests/fixtures/rules/valid-compile/invalid/invalid-svelte-ignore03-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 |
---|---|---|
@@ -1,53 +1,66 @@ | ||
- message: Empty block(block_empty) | ||
- message: |- | ||
Empty block | ||
https://svelte.dev/e/block_empty(block_empty) | ||
line: 2 | ||
column: 30 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 5 | ||
column: 3 | ||
suggestions: null | ||
- message: A form label must be associated with a | ||
control(a11y_label_has_associated_control) | ||
- message: |- | ||
A form label must be associated with a control | ||
https://svelte.dev/e/a11y_label_has_associated_control(a11y_label_has_associated_control) | ||
line: 5 | ||
column: 3 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 6 | ||
column: 3 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 9 | ||
column: 3 | ||
suggestions: null | ||
- message: A form label must be associated with a | ||
control(a11y_label_has_associated_control) | ||
- message: |- | ||
A form label must be associated with a control | ||
https://svelte.dev/e/a11y_label_has_associated_control(a11y_label_has_associated_control) | ||
line: 9 | ||
column: 3 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 10 | ||
column: 3 | ||
suggestions: null | ||
- message: Empty block(block_empty) | ||
- message: |- | ||
Empty block | ||
https://svelte.dev/e/block_empty(block_empty) | ||
line: 14 | ||
column: 30 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 17 | ||
column: 3 | ||
suggestions: null | ||
- message: A form label must be associated with a | ||
control(a11y_label_has_associated_control) | ||
- message: |- | ||
A form label must be associated with a control | ||
https://svelte.dev/e/a11y_label_has_associated_control(a11y_label_has_associated_control) | ||
line: 17 | ||
column: 3 | ||
suggestions: null | ||
- message: noninteractive element cannot have nonnegative tabIndex | ||
value(a11y_no_noninteractive_tabindex) | ||
- message: |- | ||
noninteractive element cannot have nonnegative tabIndex value | ||
https://svelte.dev/e/a11y_no_noninteractive_tabindex(a11y_no_noninteractive_tabindex) | ||
line: 18 | ||
column: 3 | ||
suggestions: null |
8 changes: 6 additions & 2 deletions
8
...lte/tests/fixtures/rules/valid-compile/invalid/svelte-config-custom-warn/a11y-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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
- message: '`<img>` element should have an alt attribute(foo)' | ||
- message: |- | ||
`<img>` element should have an alt attribute | ||
https://svelte.dev/e/a11y_missing_attribute(foo) | ||
line: 5 | ||
column: 1 | ||
suggestions: null | ||
- message: Avoid using autofocus(foo) | ||
- message: |- | ||
Avoid using autofocus | ||
https://svelte.dev/e/a11y_autofocus(foo) | ||
line: 5 | ||
column: 12 | ||
suggestions: null |
4 changes: 3 additions & 1 deletion
4
...n-svelte/tests/fixtures/rules/valid-compile/invalid/svelte-config-ignore/a11y-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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
- message: Avoid using autofocus(a11y_autofocus) | ||
- message: |- | ||
Avoid using autofocus | ||
https://svelte.dev/e/a11y_autofocus(a11y_autofocus) | ||
line: 5 | ||
column: 12 | ||
suggestions: null |
5 changes: 3 additions & 2 deletions
5
...ges/eslint-plugin-svelte/tests/fixtures/rules/valid-compile/invalid/ts/enum01-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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- message: The $ prefix is reserved, and cannot be used for variables and | ||
imports(dollar_prefix_invalid) | ||
- message: |- | ||
The $ prefix is reserved, and cannot be used for variables and imports | ||
https://svelte.dev/e/dollar_prefix_invalid(dollar_prefix_invalid) | ||
line: 2 | ||
column: 8 | ||
suggestions: null |
7 changes: 7 additions & 0 deletions
7
...ests/fixtures/rules/valid-each-key/valid/svelte5-each-blocks-without-an-item-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,7 @@ | ||
<div class="chess-board"> | ||
{#each { length: 8 }, rank} | ||
{#each { length: 8 }} | ||
{rank} | ||
{/each} | ||
{/each} | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...fixtures/rules/valid-each-key/valid/svelte5-each-blocks-without-an-item-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" | ||
} |