-
-
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.
feat: improve reporting range for
svelte/html-self-closing
rule. (#296
- Loading branch information
Showing
12 changed files
with
36 additions
and
67 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 | ||
--- | ||
|
||
feat: improve reporting range for `svelte/html-self-closing` rule. |
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/html-self-closing/invalid/component-never/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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
- message: Disallow self-closing on Svelte custom components. | ||
line: 3 | ||
column: 3 | ||
column: 18 | ||
suggestions: null | ||
- message: Disallow self-closing on Svelte custom components. | ||
line: 4 | ||
column: 3 | ||
column: 15 | ||
suggestions: null |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/html-self-closing/invalid/normal-ignore/normal-any-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,4 @@ | ||
- message: Require self-closing on HTML void elements. | ||
line: 5 | ||
column: 3 | ||
column: 7 | ||
suggestions: null |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/html-self-closing/invalid/normal-never/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- message: Disallow self-closing on HTML elements. | ||
line: 3 | ||
column: 3 | ||
column: 8 | ||
suggestions: null |
22 changes: 0 additions & 22 deletions
22
tests/fixtures/rules/html-self-closing/invalid/presets/html/preset-html-errors.json
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
tests/fixtures/rules/html-self-closing/invalid/presets/html/preset-html-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,16 +1,16 @@ | ||
- message: Disallow self-closing on HTML elements. | ||
line: 3 | ||
column: 3 | ||
column: 8 | ||
suggestions: null | ||
- message: Require self-closing on HTML void elements. | ||
line: 4 | ||
column: 3 | ||
column: 7 | ||
suggestions: null | ||
- message: Disallow self-closing on Svelte custom components. | ||
line: 5 | ||
column: 3 | ||
column: 18 | ||
suggestions: null | ||
- message: Require self-closing on Svelte special elements. | ||
line: 8 | ||
column: 1 | ||
column: 13 | ||
suggestions: null |
22 changes: 0 additions & 22 deletions
22
tests/fixtures/rules/html-self-closing/invalid/presets/none/preset-none-errors.json
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
tests/fixtures/rules/html-self-closing/invalid/presets/none/preset-none-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,16 +1,16 @@ | ||
- message: Disallow self-closing on HTML elements. | ||
line: 3 | ||
column: 3 | ||
column: 8 | ||
suggestions: null | ||
- message: Disallow self-closing on Svelte custom components. | ||
line: 4 | ||
column: 3 | ||
column: 18 | ||
suggestions: null | ||
- message: Disallow self-closing on HTML void elements. | ||
line: 5 | ||
column: 3 | ||
column: 8 | ||
suggestions: null | ||
- message: Disallow self-closing on Svelte special elements. | ||
line: 8 | ||
column: 1 | ||
column: 14 | ||
suggestions: null |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/html-self-closing/invalid/svelte-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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- message: Disallow self-closing on Svelte special elements. | ||
line: 2 | ||
column: 1 | ||
column: 14 | ||
suggestions: null |
6 changes: 3 additions & 3 deletions
6
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
- message: Require self-closing on HTML elements. | ||
line: 3 | ||
column: 3 | ||
column: 7 | ||
suggestions: null | ||
- message: Require self-closing on Svelte custom components. | ||
line: 4 | ||
column: 3 | ||
column: 17 | ||
suggestions: null | ||
- message: Require self-closing on HTML void elements. | ||
line: 5 | ||
column: 3 | ||
column: 7 | ||
suggestions: null |
2 changes: 1 addition & 1 deletion
2
tests/fixtures/rules/html-self-closing/invalid/void-never/void-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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- message: Disallow self-closing on HTML void elements. | ||
line: 3 | ||
column: 3 | ||
column: 8 | ||
suggestions: null |