chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.

This commit is contained in:
cpojer
2026-01-31 16:03:28 +09:00
parent 481f696a87
commit 15792b153f
292 changed files with 643 additions and 699 deletions

View File

@@ -111,12 +111,12 @@ export async function finalizeOnboardingWizard(options: FinalizeOnboardingOption
if (installDaemon) {
const daemonRuntime =
flow === "quickstart"
? (DEFAULT_GATEWAY_DAEMON_RUNTIME as GatewayDaemonRuntime)
: ((await prompter.select({
? DEFAULT_GATEWAY_DAEMON_RUNTIME
: await prompter.select({
message: "Gateway service runtime",
options: GATEWAY_DAEMON_RUNTIME_OPTIONS,
initialValue: opts.daemonRuntime ?? DEFAULT_GATEWAY_DAEMON_RUNTIME,
})) as GatewayDaemonRuntime);
});
if (flow === "quickstart") {
await prompter.note(
"QuickStart uses Node for the Gateway service (stable + supported).",
@@ -126,14 +126,14 @@ export async function finalizeOnboardingWizard(options: FinalizeOnboardingOption
const service = resolveGatewayService();
const loaded = await service.isLoaded({ env: process.env });
if (loaded) {
const action = (await prompter.select({
const action = await prompter.select({
message: "Gateway service already installed",
options: [
{ value: "restart", label: "Restart" },
{ value: "reinstall", label: "Reinstall" },
{ value: "skip", label: "Skip" },
],
})) as "restart" | "reinstall" | "skip";
});
if (action === "restart") {
await withWizardProgress(
"Gateway service",
@@ -158,7 +158,7 @@ export async function finalizeOnboardingWizard(options: FinalizeOnboardingOption
}
}
if (!loaded || (loaded && (await service.isLoaded({ env: process.env })) === false)) {
if (!loaded || (loaded && !(await service.isLoaded({ env: process.env })))) {
const progress = prompter.progress("Gateway service");
let installError: string | null = null;
try {
@@ -312,7 +312,7 @@ export async function finalizeOnboardingWizard(options: FinalizeOnboardingOption
"Token",
);
hatchChoice = (await prompter.select({
hatchChoice = await prompter.select({
message: "How do you want to hatch your bot?",
options: [
{ value: "tui", label: "Hatch in TUI (recommended)" },
@@ -320,7 +320,7 @@ export async function finalizeOnboardingWizard(options: FinalizeOnboardingOption
{ value: "later", label: "Do this later" },
],
initialValue: "tui",
})) as "tui" | "web" | "later";
});
if (hatchChoice === "tui") {
await runTui({