-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: updated the
html-self-closing
rule to follow Svelte5 (#982)
- Loading branch information
1 parent
eae0e2e
commit 04fc429
Showing
26 changed files
with
142 additions
and
57 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': major | ||
--- | ||
|
||
feat!: Updated the `html-self-closing` rule to follow Svelte5 |
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
8 changes: 0 additions & 8 deletions
8
...lte/tests/fixtures/rules/html-self-closing/invalid/foreign-never/svelte-never-errors.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...losing/invalid/foreign-never/_config.json → ...f-closing/invalid/math-never/_config.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"options": [ | ||
{ | ||
"foreign": "never" | ||
"math": "never" | ||
} | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
...svelte/tests/fixtures/rules/html-self-closing/invalid/math-never/svelte-never-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,4 @@ | ||
- message: Disallow self-closing on MathML elements. | ||
line: 3 | ||
column: 13 | ||
suggestions: null |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../foreign-never/svelte-never-output.svelte → ...lid/math-never/svelte-never-output.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,3 +1,3 @@ | ||
<!-- prettier-ignore --> | ||
<svg><path ></path></svg> | ||
<svg><path /></svg> | ||
<math><msup ></msup></math> |
7 changes: 7 additions & 0 deletions
7
...t-plugin-svelte/tests/fixtures/rules/html-self-closing/invalid/normal-always/_config.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,7 @@ | ||
{ | ||
"options": [ | ||
{ | ||
"normal": "always" | ||
} | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
.../tests/fixtures/rules/html-self-closing/invalid/normal-always/component-never-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,4 @@ | ||
- message: Require self-closing on HTML elements. | ||
line: 3 | ||
column: 7 | ||
suggestions: null |
4 changes: 4 additions & 0 deletions
4
...tests/fixtures/rules/html-self-closing/invalid/normal-always/component-never-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 @@ | ||
<!-- prettier-ignore --> | ||
<div> | ||
<div></div> | ||
</div> |
4 changes: 4 additions & 0 deletions
4
...ests/fixtures/rules/html-self-closing/invalid/normal-always/component-never-output.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 @@ | ||
<!-- prettier-ignore --> | ||
<div> | ||
<div/> | ||
</div> |
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
7 changes: 7 additions & 0 deletions
7
...slint-plugin-svelte/tests/fixtures/rules/html-self-closing/invalid/svg-never/_config.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,7 @@ | ||
{ | ||
"options": [ | ||
{ | ||
"svg": "never" | ||
} | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
...-svelte/tests/fixtures/rules/html-self-closing/invalid/svg-never/svelte-never-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,4 @@ | ||
- message: Disallow self-closing on SVG elements. | ||
line: 2 | ||
column: 12 | ||
suggestions: null |
3 changes: 3 additions & 0 deletions
3
...svelte/tests/fixtures/rules/html-self-closing/invalid/svg-never/svelte-never-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,3 @@ | ||
<!-- prettier-ignore --> | ||
<svg><path /></svg> | ||
<math><msup></msup></math> |
3 changes: 3 additions & 0 deletions
3
...velte/tests/fixtures/rules/html-self-closing/invalid/svg-never/svelte-never-output.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,3 @@ | ||
<!-- prettier-ignore --> | ||
<svg><path ></path></svg> | ||
<math><msup></msup></math> |
2 changes: 1 addition & 1 deletion
2
...es/eslint-plugin-svelte/tests/fixtures/rules/html-self-closing/invalid/test01-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
2 changes: 1 addition & 1 deletion
2
...s/eslint-plugin-svelte/tests/fixtures/rules/html-self-closing/invalid/test01-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,6 +1,6 @@ | ||
<!-- prettier-ignore --> | ||
<div> | ||
<div></div> | ||
<div/> | ||
<CustomElement> </CustomElement> | ||
<img> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
.../eslint-plugin-svelte/tests/fixtures/rules/html-self-closing/invalid/test01-output.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,6 +1,6 @@ | ||
<!-- prettier-ignore --> | ||
<div> | ||
<div/> | ||
<div></div> | ||
<CustomElement/> | ||
<img/> | ||
</div> |
4 changes: 2 additions & 2 deletions
4
...ges/eslint-plugin-svelte/tests/fixtures/rules/html-self-closing/valid/test01-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