feat(prettier): support astro and mdx formatting

- Added prettier-plugin-astro as dev dependency
- Config prettier to explicitly use mdx parser when formatting mdx files

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2025-12-09 16:28:06 +08:00
parent 92eb1d5616
commit 0b538df7bb
3 changed files with 93 additions and 2 deletions

View File

@@ -1,4 +1,21 @@
{
"plugins": [
"prettier-plugin-astro"
],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
},
{
"files": "*.mdx",
"options": {
"parser": "mdx"
}
}
],
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
@@ -18,4 +35,4 @@
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}
}