-
-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add prettier-plugin-astro for eslint-config formatter (#413)
- Loading branch information
Kaivan Wong
authored
Mar 4, 2024
1 parent
74909bf
commit 479c47f
Showing
10 changed files
with
135 additions
and
6 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 |
---|---|---|
@@ -1,7 +1,21 @@ | ||
--- | ||
const isJsx = true | ||
const content = "hi!"; | ||
--- | ||
|
||
<article> | ||
<div>{content}</div> | ||
<div> | ||
{isJsx && ( | ||
<h1>{content}</h1> | ||
)} | ||
</div> | ||
</article> | ||
|
||
|
||
<script> | ||
document.querySelector('h1')?.addEventListener('click', () => { | ||
alert('hi!'); | ||
}); | ||
|
||
</script> |
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,21 @@ | ||
--- | ||
const isJsx = true | ||
const content = 'hi!'; | ||
--- | ||
|
||
<article> | ||
<div>{content}</div> | ||
</article> | ||
<article> | ||
<div>{content}</div> | ||
<div> | ||
{isJsx && ( | ||
<h1>{content}</h1> | ||
)} | ||
</div> | ||
</article> | ||
|
||
|
||
<script> | ||
document.querySelector('h1')?.addEventListener('click', () => { | ||
alert('hi!'); | ||
}); | ||
|
||
</script> |
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,21 @@ | ||
--- | ||
const isJsx = true | ||
const content = 'hi!'; | ||
--- | ||
|
||
<article> | ||
<div>{content}</div> | ||
<div> | ||
{isJsx && ( | ||
<h1>{content}</h1> | ||
)} | ||
</div> | ||
</article> | ||
|
||
|
||
<script> | ||
document.querySelector('h1')?.addEventListener('click', () => { | ||
alert('hi!'); | ||
}); | ||
|
||
</script> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -49,6 +49,7 @@ export const vscodeSettingsString = ` | |
"json", | ||
"jsonc", | ||
"yaml", | ||
"toml" | ||
"toml", | ||
"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
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 |
---|---|---|
|
@@ -62,6 +62,7 @@ runWithConfig( | |
{ | ||
typescript: true, | ||
vue: true, | ||
astro: true, | ||
formatters: true, | ||
}, | ||
) | ||
|