From 30b065dde38053243b93c0c247763ea9ecbbf28d Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Wed, 7 May 2025 18:50:21 -0400 Subject: [PATCH] fix: eslint error and server plugin name --- server/plugins/04.auth-init.ts | 5 +++-- server/plugins/{04.tasks.ts => tasks.ts} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename server/plugins/{04.tasks.ts => tasks.ts} (100%) diff --git a/server/plugins/04.auth-init.ts b/server/plugins/04.auth-init.ts index 6b561eb..7369de2 100644 --- a/server/plugins/04.auth-init.ts +++ b/server/plugins/04.auth-init.ts @@ -9,7 +9,7 @@ export const enabledAuthManagers: { }; const initFunctions: { - [K in keyof typeof enabledAuthManagers]: () => Promise; + [K in keyof typeof enabledAuthManagers]: () => Promise; } = { oidc: OIDCManager.prototype.create, simple: async () => { @@ -18,11 +18,12 @@ const initFunctions: { }, }; -export default defineNitroPlugin(async (nitro) => { +export default defineNitroPlugin(async (_nitro) => { for (const [key, init] of Object.entries(initFunctions)) { try { const object = await init(); if (!object) break; + // eslint-disable-next-line @typescript-eslint/no-explicit-any (enabledAuthManagers as any)[key] = object; console.log(`enabled auth: ${key}`); } catch (e) { diff --git a/server/plugins/04.tasks.ts b/server/plugins/tasks.ts similarity index 100% rename from server/plugins/04.tasks.ts rename to server/plugins/tasks.ts