Compare commits

...

1 Commits

Author SHA1 Message Date
c21a96da05 chore(dev): 添加代码格式化工具 prettier
- 在 package.json 中添加 format 脚本用于代码格式化
- 安装 prettier 依赖到项目中
- 配置 prettier 支持 vue js ts jsx tsx scss css json 文件格式化
2026-06-15 15:50:50 +08:00

View File

@@ -18,6 +18,7 @@
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"lint": "eslint . --ext .js,.vue src/",
"format": "prettier --write src/**/*.{vue,js,ts,jsx,tsx,scss,css,json}",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:report": "playwright show-report"
@@ -81,6 +82,7 @@
"happy-dom": "^20.8.3",
"jsdom": "^28.1.0",
"pg": "^8.18.0",
"prettier": "^3.8.4",
"sass": "^1.100.0",
"typescript": "^5.9.3",
"unplugin-auto-import": "^0.18.6",