From 2389a5e5a9cbc8ca978bdf2525ea86fd23fe6a36 Mon Sep 17 00:00:00 2001 From: Chris Barth Date: Wed, 6 Mar 2024 13:14:55 -0600 Subject: [PATCH] Adjust type enforcement to remove warnings (#889) --- .eslintrc.json | 3 ++- src/types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1e11d90a..85c2af21 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -23,7 +23,8 @@ { "files": ["test/**"], "rules": { - "@typescript-eslint/ban-ts-comment": "off" + "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/no-explicit-any": "error" } } ] diff --git a/src/types.ts b/src/types.ts index 7a862c59..dded2775 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,6 +4,7 @@ import { Profile, SamlConfig } from "."; export interface AuthenticateOptions extends passport.AuthenticateOptions { samlFallback?: "login-request" | "logout-request"; + // eslint-disable-next-line @typescript-eslint/no-explicit-any additionalParams?: Record; }