接入 ESLint 并清理未使用代码

- 前后端接入 ESLint 10 扁平配置(typescript-eslint 类型感知检查 + react-hooks/react-refresh),新增 lint / lint:check / lint:fix 脚本并纳入 check 链路
- 清理全部 no-unused-vars 与 no-useless-assignment 警告,修复 floating promises、正则转义等问题
- 删除确认无引用的死代码(markKuaishouCloudBindUrlRefreshFailed、未使用 helper 等)
This commit is contained in:
yml2213
2026-08-16 18:04:55 +08:00
parent 5c7c3e14e3
commit 81ae04dae0
55 changed files with 3031 additions and 628 deletions
+1 -5
View File
@@ -107,7 +107,7 @@ async function call(endpoint: string, params: JsonObject) {
const started = Date.now()
let status = 0
let json: JsonObject = {}
let json: JsonObject
try {
const res = await fetch(url, {
method: 'POST',
@@ -136,10 +136,6 @@ function paramsToForm(params: JsonObject): string {
return p.join('&') + `&param=${encodeURIComponent(String(params.param || '{}'))}` + signPart
}
function pp(v: unknown): string {
return JSON.stringify(v, null, 2)
}
// ───── 先准备订单 ─────
console.log('---')
console.log('准备测试订单...\n')