chore: Enable no-useless-concat (removing the lint rule from the disabled list automatically enables it because it is in the "suspicious" group).

This commit is contained in:
cpojer
2026-01-31 16:08:56 +09:00
parent 9c4cbaab7b
commit b7e401b6b6
3 changed files with 3 additions and 5 deletions

View File

@@ -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}\` });`,