Skip to content

Commit

Permalink
fix: yargs
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnturner committed Dec 9, 2023
1 parent 4d6b4c4 commit 30f6d1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,7 @@ export function mapAuditCiConfigToAuditCiFullConfig(
}

export async function runYargs(): Promise<AuditCiFullConfig> {
// 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
Expand Down

0 comments on commit 30f6d1c

Please sign in to comment.