diff --git a/.oxlintrc.json b/.oxlintrc.json index 24536d90b0..3771300077 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -21,8 +21,6 @@ "unicorn/require-post-message-target-origin": "off", "typescript/no-extraneous-class": "off", "oxc/no-async-endpoint-handlers": "off", - "eslint/no-useless-concat": "off", - "eslint/no-unused-vars": "error", "eslint/no-new": "off", "eslint/preserve-caught-error": "off", }, diff --git a/src/gateway/hooks-mapping.test.ts b/src/gateway/hooks-mapping.test.ts index e07e2eeaf6..872edfaca6 100644 --- a/src/gateway/hooks-mapping.test.ts +++ b/src/gateway/hooks-mapping.test.ts @@ -65,7 +65,7 @@ describe("hooks mapping", () => { it("runs transform module", async () => { const dir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-hooks-")); const modPath = path.join(dir, "transform.mjs"); - const placeholder = "${" + "payload.name}"; + const placeholder = "${payload.name}"; fs.writeFileSync( modPath, `export default ({ payload }) => ({ kind: "wake", text: \`Ping ${placeholder}\` });`, diff --git a/test/media-understanding.auto.e2e.test.ts b/test/media-understanding.auto.e2e.test.ts index 8f4761f4db..505e5f04fc 100644 --- a/test/media-understanding.auto.e2e.test.ts +++ b/test/media-understanding.auto.e2e.test.ts @@ -64,7 +64,7 @@ describe("media understanding auto-detect (e2e)", () => { await writeExecutable( binDir, "sherpa-onnx-offline", - "#!/usr/bin/env bash\n" + 'echo "{\\"text\\":\\"sherpa ok\\"}"\n', + `#!/usr/bin/env bash\necho "{\\"text\\":\\"sherpa ok\\"}"\n`, ); process.env.PATH = `${binDir}:/usr/bin:/bin`; @@ -143,7 +143,7 @@ describe("media understanding auto-detect (e2e)", () => { await writeExecutable( binDir, "gemini", - "#!/usr/bin/env bash\necho '{" + '\\"response\\":\\"gemini ok\\"' + "}'\n", + `#!/usr/bin/env bash\necho '{\\"response\\":\\"gemini ok\\"' + "}'\n`, ); process.env.PATH = `${binDir}:/usr/bin:/bin`;