1
0

refactor: 精简 package.json scripts,引入 eslint-plugin-prettier 统一格式检查

删除 start/build:web/format:check,简化 check 为 typecheck+lint+test

引入 eslint-plugin-prettier 将 Prettier 集成至 ESLint,统一质量检查入口

简化 lint-staged 配置,扩展 clean 清理范围至 dist/
This commit is contained in:
2026-05-12 21:43:20 +08:00
parent 9a71b7967c
commit ad87be6956
9 changed files with 78 additions and 34 deletions

View File

@@ -4,7 +4,8 @@ import { resolve } from "node:path";
const root = resolve(import.meta.dir, "..");
const patterns: Array<{ desc: string; glob: string }> = [
{ desc: "Bun 构建缓存", glob: ".build/" },
{ desc: "构建产物", glob: "dist/**" },
{ desc: "Bun 构建缓存", glob: ".build/**" },
{ desc: "Bun 构建临时文件", glob: ".*.bun-build" },
];