fix(lint): eslint 忽略 .stable/** —— 部署快照是产物不是源码

08-28 stable.sh 改造开始往 .stable/src 放源码快照(gitignore 里排着),
eslint 却照 lint 不误:24 条错、pnpm lint 对谁都是红的。
它与既有的 dist / .build / api-report / .api-tmp 同类 —— 那份代码改不动
(下次 stable.sh update 就覆盖),真源是它构建自的那个 commit。
长红的门禁等于没有门禁:人会学会忽略 lint 输出,那才是真损失。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKMZDwMbyKzjw6Hembwvet
This commit is contained in:
xcs
2026-08-29 03:09:30 +08:00
co-authored by Claude Opus 5
parent 16fe8ba71b
commit fc8b3c504b
+6
View File
@@ -19,6 +19,12 @@ export default tseslint.config(
// api:check 生成声明用的临时盘;它和 api-report 一样是**产物不是源码**。 // api:check 生成声明用的临时盘;它和 api-report 一样是**产物不是源码**。
// 不排除的话,api:check 中途失败留下的半成品会让 lint 报上千条假错。 // 不排除的话,api:check 中途失败留下的半成品会让 lint 报上千条假错。
'.api-tmp/**', '.api-tmp/**',
// 稳定版实例的**部署快照**(`.stable/src` 是某个旧 commit 的源码拷贝,`stable.sh` 放的,
// gitignore 里也排着)。它与上面三条同类:**产物不是源码** —— 那里的代码改不动
// (下一次 `stable.sh update` 就覆盖掉),它的真源是它构建自的那个 commit。
// 不排除的话 `pnpm lint` 对谁都是红的,而**长红的门禁等于没有门禁**:
// 人会学会忽略 lint 输出,那才是真正的损失。
'.stable/**',
'tools/depcruise-tiers.generated.cjs', 'tools/depcruise-tiers.generated.cjs',
'docs/**', 'docs/**',
// 验证性原型(spike):一次性的事实探针,跑完留证据即弃 —— 不进产线,也不受产线规矩约束 // 验证性原型(spike):一次性的事实探针,跑完留证据即弃 —— 不进产线,也不受产线规矩约束