Files
novalon-website/e2e/tsconfig.json
zhangxiang 1c0ce5f458 chore(gates): DEC-N6 让 e2e 进类型口径,并修 pre-commit 位与证据路径覆盖历史
- 新增 e2e/tsconfig.json + `npm run type-check:e2e`(并入 test:all)。
  本轮实测证据:teardown 补丁里第二个 `const revalidateSecret` 与既有声明重名,
  `npm run type-check` 全程 EXIT=0,只有 `playwright test --list` 才报重复声明 ——
  现在静态期就能抓。读数:type-check:e2e EXIT=0。
- .husky/pre-commit 的索引模式改回 100755(本轮每次提交都在打
  "was ignored because it's not set as executable",即 lint-staged 在任何克隆里都不执行)。
  验证看 `git ls-files -s .husky` 的 mode,不是看文件系统权限。
- axe 证据落盘改为按运行轮次分目录(原写死 docs/acceptance/2026-09-21-axe/axe-evidence.json,
  于是每跑一次就覆盖一次历史:0157b1c9 里那 409 行 diff 就是这么产生的),
  并补 check:axe:selftest;判定逻辑与退出码三档语义未动。
- 顺带修一处仪器级缺陷:package.json 里 `type-check:e2e` 被写了两遍 ——
  JSON 重复键是后者静默覆盖前者,不会报错也不会判红,正是本仓反复吃的"重复声明"类。
  现取键数与值由 node 回读校验。
2026-10-17 07:54:21 +08:00

28 lines
1.1 KiB
JSON

{
"//": [
"DEC-N6 补口:根 tsconfig.json 的 exclude 里显式列了 e2e,因此 `npm run type-check` 全程抓不到",
"e2e/** 里的类型错误与重复声明(历史实例:teardown 补丁里第二个 `const revalidateSecret` 与既有声明",
"重名,type-check EXIT=0,只有 `cd e2e && npx playwright test --list` 才报)。本文件让 `tsc --noEmit -p e2e`",
"能在静态阶段抓到同一类错误,由 `npm run type-check:e2e` 承载。",
"口径:继承根配置的 strict / noUncheckedIndexedAccess 等全部严格度开关,只替换文件集合与 types。",
"不引入 skipLibCheck / any 之类的降噪手段(根配置本就 skipLibCheck: true,此处保持一致,未额外放宽)。"
],
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["node"],
"noEmit": true,
"incremental": false,
"paths": {
"@/*": ["../src/*"]
}
},
"include": ["**/*.ts"],
"exclude": [
"node_modules",
"test-results",
"allure-results",
"playwright-report",
"visual-snapshots"
]
}