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

@@ -180,9 +180,13 @@ describeLive("memory plugin live tests", () => {
const liveApiKey = process.env.OPENAI_API_KEY ?? "";
// Mock plugin API
// oxlint-disable-next-line typescript/no-explicit-any
const registeredTools: any[] = [];
// oxlint-disable-next-line typescript/no-explicit-any
const registeredClis: any[] = [];
// oxlint-disable-next-line typescript/no-explicit-any
const registeredServices: any[] = [];
// oxlint-disable-next-line typescript/no-explicit-any
const registeredHooks: Record<string, any[]> = {};
const logs: string[] = [];
@@ -207,15 +211,19 @@ describeLive("memory plugin live tests", () => {
error: (msg: string) => logs.push(`[error] ${msg}`),
debug: (msg: string) => logs.push(`[debug] ${msg}`),
},
// oxlint-disable-next-line typescript/no-explicit-any
registerTool: (tool: any, opts: any) => {
registeredTools.push({ tool, opts });
},
// oxlint-disable-next-line typescript/no-explicit-any
registerCli: (registrar: any, opts: any) => {
registeredClis.push({ registrar, opts });
},
// oxlint-disable-next-line typescript/no-explicit-any
registerService: (service: any) => {
registeredServices.push(service);
},
// oxlint-disable-next-line typescript/no-explicit-any
on: (hookName: string, handler: any) => {
if (!registeredHooks[hookName]) {
registeredHooks[hookName] = [];
@@ -226,6 +234,7 @@ describeLive("memory plugin live tests", () => {
};
// Register plugin
// oxlint-disable-next-line typescript/no-explicit-any
memoryPlugin.register(mockApi as any);
// Check registration