diff --git a/.eslintrc.json b/.eslintrc.json index df4ff71..8916cf8 100755 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -22,6 +22,7 @@ "prefer-const": "warn", "prefer-spread": "warn", "prettier/prettier": "warn", + "node/no-extraneous-import": "off", "@typescript-eslint/adjacent-overload-signatures": "warn", "@typescript-eslint/await-thenable": "warn", "@typescript-eslint/ban-types": "warn", @@ -31,8 +32,8 @@ "@typescript-eslint/no-for-in-array": "warn", "@typescript-eslint/no-implied-eval": ["warn"], "@typescript-eslint/no-misused-promises": "warn", - "@typescript-eslint/no-unused-expressions": ["warn"], - "@typescript-eslint/no-unused-vars": ["warn"], + "@typescript-eslint/no-unused-expressions": "warn", + "@typescript-eslint/no-unused-vars": "warn", "@typescript-eslint/no-unsafe-assignment": ["off"], "@typescript-eslint/no-unsafe-call": ["off"], "@typescript-eslint/no-unsafe-member-access": ["warn"], diff --git a/bun.lockb b/bun.lockb index cc055fc..10ace8f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/client/src/notificationReceivers/procSpawner.ts b/client/src/notificationReceivers/procSpawner.ts index ce42ccf..020bc46 100644 --- a/client/src/notificationReceivers/procSpawner.ts +++ b/client/src/notificationReceivers/procSpawner.ts @@ -52,7 +52,7 @@ export class ProcessSpawner implements Disposable { } } - private async _killProc(pid: number, binStr?: string): Promise { + private _killProc(pid: number, binStr?: string): void { if (!this._procExists(pid)) { return; } @@ -62,7 +62,7 @@ export class ProcessSpawner implements Disposable { return; } - list.forEach(async (proc) => { + list.forEach((proc) => { if (binStr && proc.command !== binStr) { return; } @@ -89,7 +89,10 @@ export class ProcessSpawner implements Disposable { Object.entries(processes).forEach(([pid, data]) => { const descriptor = typeof data === 'number' - ? { timeout: data, binStr: undefined } + ? { + timeout: data, + binStr: undefined, + } : data; if ( Date.now() > descriptor.timeout &&