fix: resolve lint errors (unused vars, imports, formatting)

- Prefix unused test variables with underscore
- Remove unused piSpec import and idleMs class member
- Fix import ordering and code formatting
This commit is contained in:
Eng. Juan Combetto authored and Peter Steinberger committed 2025-12-04 16:15:17 +00:00
1 parent 518af0ef24
commit 4a35bcec21
9 files changed
+144 -126

No files matched your search

+6 -4
View File
@@ -1,8 +1,6 @@
import { type ChildProcessWithoutNullStreams, spawn } from "node:child_process";
import readline from "node:readline";
import { piSpec } from "../agents/pi.js";
type TauRpcOptions = {
argv: string[];
cwd?: string;
@@ -24,7 +22,6 @@ class TauRpcClient {
private stderr = "";
private buffer: string[] = [];
private idleTimer: NodeJS.Timeout | null = null;
private readonly idleMs = 120;
private pending:
| {
resolve: (r: TauRpcResult) => void;
@@ -58,7 +55,12 @@ class TauRpcClient {
const out = this.buffer.join("\n");
clearTimeout(pending.timer);
// Treat process exit as completion with whatever output we captured.
pending.resolve({ stdout: out, stderr: this.stderr, code: code ?? 0, signal });
pending.resolve({
stdout: out,
stderr: this.stderr,
code: code ?? 0,
signal,
});
}
this.dispose();
});