Skip to content

Commit e687287

Browse files
committed
Fix config hints
1 parent 7ee634a commit e687287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/knip/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const run = async () => {
8787

8888
if (
8989
(!parsedCLIArgs['no-exit-code'] && totalErrorCount > Number(parsedCLIArgs['max-issues'] ?? 0)) ||
90-
(!options.isDisableConfigHints && configurationHints.size > 0)
90+
(!options.isDisableConfigHints && options.isTreatConfigHintsAsErrors && configurationHints.size > 0)
9191
) {
9292
process.exit(1);
9393
}

0 commit comments

Comments
 (0)