mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-28 01:25:54 +00:00
enhance: add lint PR1093
This commit is contained in:
parent
94822b159d
commit
cd87f8fdb4
3 changed files with 3 additions and 5 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@
|
|||
"@/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src", "electron", "resources/script", "test"],
|
||||
"include": ["src", "electron", "resources/scripts", "test"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue