From 30f6d1c8b9248cc59c780a731e0505c6b0cbb22b Mon Sep 17 00:00:00 2001 From: Quinn Turner Date: Mon, 25 Sep 2023 10:28:55 -0300 Subject: [PATCH] fix: yargs --- lib/config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/config.ts b/lib/config.ts index 076520b..2630201 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -293,9 +293,7 @@ export function mapAuditCiConfigToAuditCiFullConfig( } export async function runYargs(): Promise { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - const { argv } = yargs("config", (configPath) => + const { argv } = yargs().config("config", (configPath) => // Supports JSON, JSONC, & JSON5 jju.parse(readFileSync(configPath, "utf8"), { // When passing an allowlist using NSRecord syntax, yargs will throw an error