From 2cf13511b7c241bbb0bd6ac6dcbe7a55259e9def Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Wed, 4 Feb 2026 16:57:41 +0800 Subject: [PATCH] fix(desktop): fix lint errors and relax unused-vars rule - Remove unused AgentEvent import from hub.ts - Change @typescript-eslint/no-unused-vars to warn instead of error Co-Authored-By: Claude Opus 4.5 --- apps/desktop/.eslintrc.cjs | 1 + apps/desktop/electron/ipc/hub.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/.eslintrc.cjs b/apps/desktop/.eslintrc.cjs index 7dbd9d18..527508b1 100644 --- a/apps/desktop/.eslintrc.cjs +++ b/apps/desktop/.eslintrc.cjs @@ -14,5 +14,6 @@ module.exports = { 'warn', { allowConstantExport: true }, ], + '@typescript-eslint/no-unused-vars': 'warn', }, } diff --git a/apps/desktop/electron/ipc/hub.ts b/apps/desktop/electron/ipc/hub.ts index 6412cf97..75d1f1b6 100644 --- a/apps/desktop/electron/ipc/hub.ts +++ b/apps/desktop/electron/ipc/hub.ts @@ -8,7 +8,6 @@ import { ipcMain, type BrowserWindow } from 'electron' import { Hub } from '../../../../src/hub/hub.js' import type { ConnectionState } from '@multica/sdk' import type { AsyncAgent } from '../../../../src/agent/async-agent.js' -import type { AgentEvent } from '@mariozechner/pi-agent-core' /** * Extract plain text from AgentMessage content (string or content block array).