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

@@ -45,10 +45,10 @@ export async function configureGatewayForOnboarding(
10,
);
let bind = (
let bind =
flow === "quickstart"
? quickstartGateway.bind
: ((await prompter.select({
: await prompter.select({
message: "Gateway bind",
options: [
{ value: "loopback", label: "Loopback (127.0.0.1)" },
@@ -57,8 +57,7 @@ export async function configureGatewayForOnboarding(
{ value: "auto", label: "Auto (Loopback → LAN)" },
{ value: "custom", label: "Custom IP" },
],
})) as "loopback" | "lan" | "auto" | "custom" | "tailnet")
) as "loopback" | "lan" | "auto" | "custom" | "tailnet";
});
let customBindHost = quickstartGateway.customBindHost;
if (bind === "custom") {
@@ -87,7 +86,7 @@ export async function configureGatewayForOnboarding(
}
}
let authMode = (
let authMode =
flow === "quickstart"
? quickstartGateway.authMode
: ((await prompter.select({
@@ -101,13 +100,12 @@ export async function configureGatewayForOnboarding(
{ value: "password", label: "Password" },
],
initialValue: "token",
})) as GatewayAuthChoice)
) as GatewayAuthChoice;
})) as GatewayAuthChoice);
const tailscaleMode = (
const tailscaleMode =
flow === "quickstart"
? quickstartGateway.tailscaleMode
: ((await prompter.select({
: await prompter.select({
message: "Tailscale exposure",
options: [
{ value: "off", label: "Off", hint: "No Tailscale exposure" },
@@ -122,8 +120,7 @@ export async function configureGatewayForOnboarding(
hint: "Public HTTPS via Tailscale Funnel (internet)",
},
],
})) as "off" | "serve" | "funnel")
) as "off" | "serve" | "funnel";
});
// Detect Tailscale binary before proceeding with serve/funnel setup.
if (tailscaleMode !== "off") {