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.`, + }); }); }); }