-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shorthand props not working inside expressions and update error h…
…andling (#246) * Fix shorthand props not working inside expressions * Add changeset * Also process children * Improve typing and name * More tests
- Loading branch information
1 parent
1adfd4a
commit 6ebc4d4
Showing
6 changed files
with
123 additions
and
11 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 @@ | ||
--- | ||
'prettier-plugin-astro': minor | ||
--- | ||
|
||
Update error handling to give better error messages when we fail to parse an expression, fixed shorthands props not working inside expressions |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{enabled && <Header | ||
|
||
|
||
|
||
{content} />} | ||
|
||
{enabled && <Header | ||
|
||
|
||
hello={hello} | ||
{content} />} | ||
|
||
{[].map((item) => { | ||
return <> | ||
<Header hello={hello} {content} /> | ||
<Header {content} /> | ||
</>}) | ||
} |
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,12 @@ | ||
{enabled && <Header {content} />} | ||
|
||
{enabled && <Header hello={hello} {content} />} | ||
|
||
{[].map((item) => { | ||
return ( | ||
<> | ||
<Header hello={hello} {content} /> | ||
<Header {content} /> | ||
</> | ||
); | ||
})} |
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