build(ci): 建立单仓工具链与质量门禁

统一 pnpm 10 + Node 24.15.0 + Turborepo 单仓,落地 ESLint 9 flat、Prettier、commitlint、husky 与 Gitea CI,作为后续批次的一致门禁。
This commit is contained in:
Stev_Wang committed 2026-11-02 17:20:17 +08:00
1 parent 75cedbe97b
commit b3a2a843bb
21 files changed
+10622

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
const userAgent = process.env.npm_config_user_agent ?? '';
if (!userAgent.startsWith('pnpm/')) {
console.error('');
console.error('✗ 灵犀项目只允许使用 pnpm 10 安装依赖(见 AGENTS.md §3)。');
console.error(' 请执行:corepack enable && pnpm install');
console.error(' 或使用:npx pnpm@10.34.9 install');
console.error('');
process.exit(1);
}