From 712b51a56824af5a207c2bf1904a1b0adaa2fcf6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 28 Jan 2026 18:46:47 +0000 Subject: [PATCH] Also disable no-unsafe-argument rule This rule is also triggered by stricter types in @actions/github v9 Co-authored-by: henrymercer <14129055+henrymercer@users.noreply.github.com> --- eslint.config.mjs | 1 + src/feature-flags.test.ts | 18 +++++++----------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 37e0d1e67..5678349f8 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -152,6 +152,7 @@ export default [ rules: { "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-enum-comparison": "off", diff --git a/src/feature-flags.test.ts b/src/feature-flags.test.ts index cdab85e27..04aea8830 100644 --- a/src/feature-flags.test.ts +++ b/src/feature-flags.test.ts @@ -259,17 +259,13 @@ for (const feature of Object.keys(featureConfig)) { // The type system should prevent this happening, but test that if we // bypass it we get the expected error. - await t.throwsAsync( - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument - async () => features.getValue(feature as any), - { - message: `Internal error: A ${ - featureConfig[feature].minimumVersion !== undefined - ? "minimum version" - : "required tools feature" - } is specified for feature ${feature}, but no instance of CodeQL was provided.`, - }, - ); + await t.throwsAsync(async () => features.getValue(feature as any), { + message: `Internal error: A ${ + featureConfig[feature].minimumVersion !== undefined + ? "minimum version" + : "required tools feature" + } is specified for feature ${feature}, but no instance of CodeQL was provided.`, + }); }); }); }