From 417eb9500ddbbdc30d830c3a9c5a4d80a6ea8ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Fri, 8 May 2026 15:04:44 +0300 Subject: [PATCH] fix(ci): unblock CI lint by allowing any in OIDC/OAuth test files The OIDC and OAuth test files (added in #1056) inspect the dynamic NextAuth provider object and use `any` for ergonomic property access. That trips @typescript-eslint/no-explicit-any (error level), which has been failing CI on main since 2026-05-02. Add a file-level eslint-disable for that rule in both test files. This is the standard pattern for tests that poke runtime-shaped objects, and keeps the rule strict everywhere else. Local: npm run lint -> 0 errors, npm test -> 709/709 passing. Co-authored-by: Cursor --- src/__tests__/lib/plugins/auth/oauth.test.ts | 1 + src/__tests__/lib/plugins/auth/oidc.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/__tests__/lib/plugins/auth/oauth.test.ts b/src/__tests__/lib/plugins/auth/oauth.test.ts index b1c0b19f..c1dbe547 100644 --- a/src/__tests__/lib/plugins/auth/oauth.test.ts +++ b/src/__tests__/lib/plugins/auth/oauth.test.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-explicit-any -- tests inspect the dynamic NextAuth provider object */ import { describe, it, expect, beforeEach, afterEach } from "vitest"; import { oauthPlugin } from "@/lib/plugins/auth/oauth"; diff --git a/src/__tests__/lib/plugins/auth/oidc.test.ts b/src/__tests__/lib/plugins/auth/oidc.test.ts index 869d42f6..25d950ac 100644 --- a/src/__tests__/lib/plugins/auth/oidc.test.ts +++ b/src/__tests__/lib/plugins/auth/oidc.test.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-explicit-any -- tests inspect the dynamic NextAuth provider object */ import { describe, it, expect, beforeEach, afterEach } from "vitest"; import { oidcPlugin } from "@/lib/plugins/auth/oidc";