chore(lint): drop stale config and gateway lint comments

This commit is contained in:
Vincent Koc
2026-04-06 15:57:32 +01:00
parent 2537ae503d
commit cb770057b0
4 changed files with 0 additions and 7 deletions

View File

@@ -42,7 +42,6 @@ describe("channel token and HTTP validation", () => {
botToken: "xoxb-any",
appToken: "xapp-any",
userToken: "xoxp-any",
// oxlint-disable-next-line typescript/no-explicit-any
userTokenReadOnly: "no" as any,
},
},
@@ -59,7 +58,6 @@ describe("channel token and HTTP validation", () => {
slack: {
botToken: "xoxb-any",
appToken: "xapp-any",
// oxlint-disable-next-line typescript/no-explicit-any
userToken: 123 as any,
},
},

View File

@@ -76,7 +76,6 @@ export async function collectIncludePathsRecursive(params: {
}
})();
if (nestedParsed) {
// eslint-disable-next-line no-await-in-loop
await walk(resolved, nestedParsed, depth + 1);
}
}

View File

@@ -519,11 +519,9 @@ describe("config io write", () => {
const next = structuredClone(snapshot.config);
// Simulate doctor removing legacy keys while keeping dm enabled.
if (next.channels?.discord?.dm && typeof next.channels.discord.dm === "object") {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- test helper
delete (next.channels.discord.dm as any).policy;
}
if (next.channels?.slack?.dm && typeof next.channels.slack.dm === "object") {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- test helper
delete (next.channels.slack.dm as any).policy;
}

View File

@@ -227,13 +227,11 @@ describe("timestampOptsFromConfig", () => {
it.each([
{
name: "extracts timezone from config",
// oxlint-disable-next-line typescript/no-explicit-any
cfg: { agents: { defaults: { userTimezone: "America/Chicago" } } } as any,
expected: "America/Chicago",
},
{
name: "falls back gracefully with empty config",
// oxlint-disable-next-line typescript/no-explicit-any
cfg: {} as any,
expected: Intl.DateTimeFormat().resolvedOptions().timeZone,
},