-
-
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.
fix: preserve whitespace between attributes in sort-attributes rule (#…
…445) * fix: preserve whitespace between attributes in sort-attributes rule * Create wise-news-fly.md --------- Co-authored-by: Yosuke Ota <[email protected]>
- Loading branch information
1 parent
6ffa048
commit 1133962
Showing
7 changed files
with
25 additions
and
2 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-astro": patch | ||
--- | ||
|
||
fix: preserve whitespace between attributes in sort-attributes 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
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
--- | ||
|
||
<div b="b"c="c" a="a"></div> | ||
<div b="b" c="c" a="a"></div> |
7 changes: 7 additions & 0 deletions
7
tests/fixtures/rules/sort-attributes/invalid/alphabetical/test02-errors.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 @@ | ||
[ | ||
{ | ||
"message": "Expected \"a\" to come before \"b\".", | ||
"line": 5, | ||
"column": 6 | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/rules/sort-attributes/invalid/alphabetical/test02-input.astro
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 @@ | ||
--- | ||
--- | ||
|
||
<div b="b" a></div> |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/rules/sort-attributes/invalid/alphabetical/test02-output.astro
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 @@ | ||
--- | ||
--- | ||
|
||
<div a b="b"></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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
--- | ||
|
||
<div bb="b"c="c" aaa="a"></div> | ||
<div bb="b" c="c" aaa="a"></div> |