chore: 添加完整的代码质量和测试工具链
## 新增工具 ### 1. ESLint + Prettier - ESLint 9.39.2 - 代码质量检查(Vue 3 规则) - Prettier 3.8.1 - 代码格式化 - prettier-plugin-tailwindcss - TailwindCSS 类名排序 - 配置文件:eslint.config.js, .prettierrc - VS Code 自动格式化配置 ### 2. Husky + lint-staged - Husky 9.1.7 - Git hooks 管理 - lint-staged 16.2.7 - 暂存文件检查 - pre-commit hook 自动运行 lint 和 format - 提交前自动修复代码问题 ### 3. Playwright E2E 测试 - @playwright/test 1.58.0 - E2E 测试框架 - 已安装 Chromium 和 Chrome Headless Shell - 配置文件:playwright.config.js - 示例测试:e2e/example.spec.js - 支持 3 个测试项目(移动端、桌面端、Safari) ## 配置更新 - package.json:添加 lint、format、test:e2e 等脚本 - eslint.config.js:支持 Vue、Vitest、Playwright - .gitignore:忽略 Playwright 测试结果 ## 新增文档 - docs/ESLINT_PRETTIER.md - ESLint 和 Prettier 使用指南 - docs/HUSKY_LINT_STAGED.md - Git Hooks 配置说明 - docs/PLAYWRIGHT.md - E2E 测试完整指南 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
6 changed files
with
803 additions
and
1 deletions
docs/PLAYWRIGHT.md
0 → 100644
e2e/example.spec.js
0 → 100644
playwright.config.js
0 → 100644
-
Please register or login to post a comment