diff --git a/packages/cli/src/modules/lint/commands/repo/lint.ts b/packages/cli/src/modules/lint/commands/repo/lint.ts index 246324785e..ab6597c70a 100644 --- a/packages/cli/src/modules/lint/commands/repo/lint.ts +++ b/packages/cli/src/modules/lint/commands/repo/lint.ts @@ -111,7 +111,7 @@ export async function command(opts: OptionValues, cmd: Command): Promise { fix: Boolean(opts.fix), format: opts.format as string | undefined, shouldCache: Boolean(cacheContext), - maxWarnings: Number(opts.maxWarnings) || 0, + maxWarnings: opts.maxWarnings ?? -1, successCache: cacheContext?.entries, rootDir: paths.targetRoot, },