Files
nixcn-web/.prettierrc.json
Noa Virellia 8bcc73bab5 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>
2025-12-09 16:36:26 +08:00

30 lines
719 B
JSON

{
"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
],
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"objectWrap": "preserve",
"bracketSameLine": false,
"arrowParens": "always",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "ignore",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}