chore: 🤖 add Prettier configuration

新增 Prettier 配置, 统一代码规范
This commit is contained in:
2025-11-21 19:22:50 +08:00
parent 0e175d5064
commit fde23217a6
4 changed files with 96 additions and 0 deletions

18
.prettierrc Normal file
View File

@@ -0,0 +1,18 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"printWidth": 80,
"tabWidth": 2,
"useTabs": true,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf"
}