mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
ci: allow underscore oxlint rule in runner
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user