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:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user