mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 19:50:22 +00:00
chore(lint): drop stale config and gateway lint comments
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user