diff --git a/scripts/lib/local-heavy-check-runtime.mjs b/scripts/lib/local-heavy-check-runtime.mjs index 50137944fb5..ebf90e3a10a 100644 --- a/scripts/lib/local-heavy-check-runtime.mjs +++ b/scripts/lib/local-heavy-check-runtime.mjs @@ -85,6 +85,7 @@ export function applyLocalOxlintPolicy(args, env, hostResources) { insertBeforeSeparator(nextArgs, "--type-aware"); insertBeforeSeparator(nextArgs, "--tsconfig", "tsconfig.oxlint.json"); + insertBeforeSeparator(nextArgs, "--allow", "eslint/no-underscore-dangle"); if ( !hasFlag(nextArgs, "--report-unused-disable-directives") && !hasFlag(nextArgs, "--report-unused-disable-directives-severity") diff --git a/test/scripts/local-heavy-check-runtime.test.ts b/test/scripts/local-heavy-check-runtime.test.ts index a1d92111fad..01e6c1b1294 100644 --- a/test/scripts/local-heavy-check-runtime.test.ts +++ b/test/scripts/local-heavy-check-runtime.test.ts @@ -232,6 +232,8 @@ describe("local-heavy-check-runtime", () => { "--type-aware", "--tsconfig", "tsconfig.oxlint.json", + "--allow", + "eslint/no-underscore-dangle", "--report-unused-disable-directives-severity", "error", "--threads=1", @@ -245,6 +247,8 @@ describe("local-heavy-check-runtime", () => { "--type-aware", "--tsconfig", "tsconfig.oxlint.json", + "--allow", + "eslint/no-underscore-dangle", "--report-unused-disable-directives-severity", "error", "--threads=1", @@ -259,6 +263,8 @@ describe("local-heavy-check-runtime", () => { "--type-aware", "--tsconfig", "tsconfig.oxlint.json", + "--allow", + "eslint/no-underscore-dangle", "--report-unused-disable-directives-severity", "error", ]); @@ -277,6 +283,8 @@ describe("local-heavy-check-runtime", () => { "--type-aware", "--tsconfig", "tsconfig.oxlint.json", + "--allow", + "eslint/no-underscore-dangle", "--report-unused-disable-directives-severity", "error", ]);