Files
nixcn-web/.prettierrc.json
Noa Virellia 0b538df7bb 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>
2025-12-09 16:29:31 +08:00

38 lines
882 B
JSON

{
"plugins": [
"prettier-plugin-astro"
],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
},
{
"files": "*.mdx",
"options": {
"parser": "mdx"
}
}
],
"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",
"parser": "typescript",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "ignore",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}