chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -79,10 +79,7 @@ async function canConnectLocal(port: number): Promise<boolean> {
});
}
async function waitForLocalListener(
port: number,
timeoutMs: number,
): Promise<void> {
async function waitForLocalListener(port: number, timeoutMs: number): Promise<void> {
const startedAt = Date.now();
while (Date.now() - startedAt < timeoutMs) {
if (await canConnectLocal(port)) return;
@@ -175,20 +172,14 @@ export async function startSshPortForward(opts: {
waitForLocalListener(localPort, Math.max(250, opts.timeoutMs)),
new Promise<void>((_, reject) => {
child.once("exit", (code, signal) => {
reject(
new Error(
`ssh exited (${code ?? "null"}${signal ? `/${signal}` : ""})`,
),
);
reject(new Error(`ssh exited (${code ?? "null"}${signal ? `/${signal}` : ""})`));
});
}),
]);
} catch (err) {
await stop();
const suffix = stderr.length > 0 ? `\n${stderr.join("\n")}` : "";
throw new Error(
`${err instanceof Error ? err.message : String(err)}${suffix}`,
);
throw new Error(`${err instanceof Error ? err.message : String(err)}${suffix}`);
}
return {