chore: Enable typescript/no-explicit-any rule.

This commit is contained in:
cpojer
2026-02-02 15:45:05 +09:00
parent baa1e95b9d
commit 935a0e5708
65 changed files with 248 additions and 80 deletions

View File

@@ -22,6 +22,7 @@ describe("directory (config-backed)", () => {
channels: { C111: { users: ["U777"] } },
},
},
// oxlint-disable-next-line typescript/no-explicit-any
} as any;
const peers = await listSlackDirectoryPeersFromConfig({
@@ -65,6 +66,7 @@ describe("directory (config-backed)", () => {
},
},
},
// oxlint-disable-next-line typescript/no-explicit-any
} as any;
const peers = await listDiscordDirectoryPeersFromConfig({
@@ -94,6 +96,7 @@ describe("directory (config-backed)", () => {
groups: { "-1001": {}, "*": {} },
},
},
// oxlint-disable-next-line typescript/no-explicit-any
} as any;
const peers = await listTelegramDirectoryPeersFromConfig({
@@ -121,6 +124,7 @@ describe("directory (config-backed)", () => {
groups: { "999@g.us": { requireMention: true }, "*": {} },
},
},
// oxlint-disable-next-line typescript/no-explicit-any
} as any;
const peers = await listWhatsAppDirectoryPeersFromConfig({

View File

@@ -30,7 +30,6 @@ import type {
} from "./types.core.js";
// Channel docking: implement this contract in src/channels/plugins/<id>.ts.
// biome-ignore lint/suspicious/noExplicitAny: registry aggregates heterogeneous account types.
export type ChannelConfigUiHint = {
label?: string;
help?: string;
@@ -45,6 +44,7 @@ export type ChannelConfigSchema = {
uiHints?: Record<string, ChannelConfigUiHint>;
};
// oxlint-disable-next-line typescript/no-explicit-any
export type ChannelPlugin<ResolvedAccount = any> = {
id: ChannelId;
meta: ChannelMeta;