ci: allow underscore oxlint rule in runner

This commit is contained in:
Peter Steinberger
2026-05-01 19:22:09 +01:00
parent bbf8bd56e6
commit 420824fccc
2 changed files with 9 additions and 0 deletions

View File

@@ -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")

View File

@@ -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",
]);