fix(lint): skip heavy-check lock for oxlint metadata

This commit is contained in:
Vincent Koc
2026-04-12 05:37:13 +01:00
parent 6709589117
commit 33929c477c
2 changed files with 11 additions and 0 deletions

View File

@@ -92,6 +92,10 @@ export function shouldAcquireLocalHeavyCheckLockForOxlint(
return true;
}
if (args.some((arg) => arg === "--help" || arg === "-h" || arg === "--version" || arg === "-V")) {
return false;
}
const separatorIndex = args.indexOf("--");
const candidateArgs = (() => {
if (separatorIndex !== -1) {