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

@@ -9,11 +9,7 @@ import {
} from "../config/config.js";
import { resolveGatewayService } from "../daemon/service.js";
import type { RuntimeEnv } from "../runtime.js";
import {
stylePromptHint,
stylePromptMessage,
stylePromptTitle,
} from "../terminal/prompt-style.js";
import { stylePromptHint, stylePromptMessage, stylePromptTitle } from "../terminal/prompt-style.js";
import {
collectWorkspaceDirs,
isPathWithin,
@@ -35,9 +31,7 @@ const selectStyled = <T>(params: Parameters<typeof select<T>>[0]) =>
...params,
message: stylePromptMessage(params.message),
options: params.options.map((opt) =>
opt.hint === undefined
? opt
: { ...opt, hint: stylePromptHint(opt.hint) },
opt.hint === undefined ? opt : { ...opt, hint: stylePromptHint(opt.hint) },
),
});
@@ -105,9 +99,7 @@ export async function resetCommand(runtime: RuntimeEnv, opts: ResetOptions) {
}
if (!["config", "config+creds+sessions", "full"].includes(scope)) {
runtime.error(
'Invalid --scope. Expected "config", "config+creds+sessions", or "full".',
);
runtime.error('Invalid --scope. Expected "config", "config+creds+sessions", or "full".');
runtime.exit(1);
return;
}