fix: 修复 ESLint 错误 — PathEditDialog/use-keyboard/test 添加规则豁免注释

这些是正当的 React 模式(对话框状态重置、ref 同步避免重复注册、测试 mock)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 01:07:57 +08:00
parent 39a95cc50d
commit 8ff02fd88b
4 changed files with 216 additions and 0 deletions
+1
View File
@@ -254,6 +254,7 @@ describe('savePaths', () => {
it('isSaving 守卫:并发第二次调用直接返回', async () => {
let resolveAll: (v: unknown) => void;
const pending = new Promise((r) => { resolveAll = r; });
// eslint-disable-next-line @typescript-eslint/no-explicit-any
mockedInvoke.mockReturnValue(pending as any);
// 第一次调用(不等它完成,停在 Promise.allSettled