enhance: add lint PR1093

This commit is contained in:
Wendong-Fan 2026-02-01 22:19:57 +08:00
parent 94822b159d
commit cd87f8fdb4
3 changed files with 3 additions and 5 deletions

View file

@ -161,8 +161,8 @@ export async function startBackend(
port = await findAvailablePort(5001);
fs.writeFileSync(portFile, port.toString());
log.info(`Found available port: ${port}`);
} catch (_error) {
log.error('Failed to find available port, attempting cleanup...');
} catch (error) {
log.error('Failed to find available port, attempting cleanup...', error);
// Last resort: try to kill all processes in the range
for (let p = 5001; p <= 5050; p++) {

View file

@ -18,7 +18,6 @@ import log from 'electron-log';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import { getMainWindow } from './init';
import {
cleanupOldVenvs,
getBackendPath,
@ -342,7 +341,6 @@ export async function installCommandTool(): Promise<PromiseReturnType> {
}
let uv_path: string;
const _mainWindow = getMainWindow();
const backendPath = getBackendPath();
// Ensure backend directory exists

View file

@ -20,6 +20,6 @@
"@/*": ["src/*"]
}
},
"include": ["src", "electron", "resources/script", "test"],
"include": ["src", "electron", "resources/scripts", "test"],
"references": [{ "path": "./tsconfig.node.json" }]
}