feat(prettier): support astro and fix mdx formatting
- Added prettier-plugin-astro as dev dependency
- Removed incorrect top-level "typescript" parser config
- This causes the MDX files be parsed as typescript and error out.
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
{
|
||||
"plugins": ["prettier-plugin-astro"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.astro",
|
||||
"options": {
|
||||
"parser": "astro"
|
||||
}
|
||||
}
|
||||
],
|
||||
"printWidth": 120,
|
||||
"tabWidth": 4,
|
||||
"useTabs": false,
|
||||
@@ -11,7 +20,6 @@
|
||||
"objectWrap": "preserve",
|
||||
"bracketSameLine": false,
|
||||
"arrowParens": "always",
|
||||
"parser": "typescript",
|
||||
"proseWrap": "preserve",
|
||||
"htmlWhitespaceSensitivity": "ignore",
|
||||
"vueIndentScriptAndStyle": false,
|
||||
|
||||
Reference in New Issue
Block a user