Skip to content

Commit b89664e

Browse files
committed
chore: lint 加 --deny-warnings 门禁(0 warning 基线防回潮)
1 parent 7f47b39 commit b89664e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/pr-check.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ jobs:
5353
cache-dependency-path: client/package-lock.json
5454
- run: cd client && npm ci
5555
- name: Lint
56-
run: cd client && npm run lint
56+
# --deny-warnings:2026-08 已清零全部 warning,此后新 warning 视为失败,
57+
# 防止 lint 债务回潮(审计 #4)
58+
run: cd client && npx oxlint --deny-warnings
5759
- name: Typecheck (renderer)
5860
# 渲染进程(React + Vite)的 TypeScript 编译检查
5961
run: cd client && npm run typecheck

‎client/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"dev": "vite --mode test",
1212
"build": "tsc -b && vite build",
13-
"lint": "oxlint",
13+
"lint": "oxlint --deny-warnings",
1414
"lint:fix": "oxlint --fix",
1515
"typecheck": "tsc -b --noEmit",
1616
"typecheck:electron": "tsc -p electron/tsconfig.json --noEmit",

0 commit comments

Comments
 (0)