ci: Prettier纳入两层防御体系 #520

Merged
auto-approve-bot merged 6 commits from ci/prettier-two-layer-defense into develop 2026-07-18 18:08:20 +08:00

6 Commits

Author SHA1 Message Date
CI Bot 0f81a07174 ci: 升级 Prettier 到 3.9.x + 集成 eslint-config-prettier,修复缓存与规则冲突
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 18s
AI Code Review / AI Code Review (pull_request) Successful in 1m43s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m49s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m52s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m43s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 3m8s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 3m30s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m23s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 4m38s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 22s
2026-07-18 18:03:32 +08:00
CI Bot b73b2efcef style: 修复 editPlans.ts Prettier 格式
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 7s
AI Code Review / AI Code Review (pull_request) Failing after 35s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 38s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 39s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 1m8s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m46s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m54s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 3m41s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m22s
2026-07-18 17:46:40 +08:00
CI Bot 8450fefa20 ci: 更新 package-lock.json,添加 eslint-config-prettier 依赖 2026-07-18 17:46:37 +08:00
CI Bot d268e0e38d ci: 集成 eslint-config-prettier,解决 ESLint 与 Prettier 规则冲突 2026-07-18 17:46:34 +08:00
CI Bot 330eb983d8 style: 引入Prettier后首次全量格式化(前端 + Python脚本)
- apps/web/: prettier --write . 全量格式化(98个文件)
- scripts/ci/auto_fix_formatting.py: black 格式化
纯格式改动,无业务逻辑变更
2026-07-18 17:46:20 +08:00
CI Bot 832655c759 ci: 纳入 Prettier 到两层防御体系(pre-commit + CI auto-fix + VSCode)
- pre-commit: 新增 prettier hook,覆盖前端文件
- CI auto_fix: 增加 prettier 自动修复(增量/全量模式)
- VSCode: 前端文件保存自动格式化
- 新增 apps/web/.prettierrc.json 配置
- 新增 apps/web/.prettierignore 忽略配置
- package.json 增加 format / format:check 脚本
2026-07-18 17:45:33 +08:00