diff --git a/tasks/lint_rules/src/oxlint-rules.cjs b/tasks/lint_rules/src/oxlint-rules.cjs index 2be414777fce6..80a12db4c923c 100644 --- a/tasks/lint_rules/src/oxlint-rules.cjs +++ b/tasks/lint_rules/src/oxlint-rules.cjs @@ -26,13 +26,16 @@ const readAllImplementedRuleNames = async () => { } if (found) { - const prefixedName = line + let prefixedName = line .replaceAll(',', '') .replaceAll('::', '/') .replaceAll('_', '-'); // Ignore no reference rules if (prefixedName.startsWith('oxc/')) continue; + if (prefixedName.startsWith('node/')) { + prefixedName = prefixedName.replace(/^node/, 'n'); + } rules.add(prefixedName); }