Skip to content

Commit 712b51a

Browse files
Copilothenrymercer
andcommitted
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>
1 parent 0d61442 commit 712b51a

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export default [
152152

153153
rules: {
154154
"@typescript-eslint/no-explicit-any": "off",
155+
"@typescript-eslint/no-unsafe-argument": "off",
155156
"@typescript-eslint/no-unsafe-assignment": "off",
156157
"@typescript-eslint/no-unsafe-call": "off",
157158
"@typescript-eslint/no-unsafe-enum-comparison": "off",

src/feature-flags.test.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -259,17 +259,13 @@ for (const feature of Object.keys(featureConfig)) {
259259

260260
// The type system should prevent this happening, but test that if we
261261
// bypass it we get the expected error.
262-
await t.throwsAsync(
263-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
264-
async () => features.getValue(feature as any),
265-
{
266-
message: `Internal error: A ${
267-
featureConfig[feature].minimumVersion !== undefined
268-
? "minimum version"
269-
: "required tools feature"
270-
} is specified for feature ${feature}, but no instance of CodeQL was provided.`,
271-
},
272-
);
262+
await t.throwsAsync(async () => features.getValue(feature as any), {
263+
message: `Internal error: A ${
264+
featureConfig[feature].minimumVersion !== undefined
265+
? "minimum version"
266+
: "required tools feature"
267+
} is specified for feature ${feature}, but no instance of CodeQL was provided.`,
268+
});
273269
});
274270
});
275271
}

0 commit comments

Comments
 (0)