test(lint): refresh suppression tail guardrail

This commit is contained in:
Vincent Koc
2026-04-06 21:05:18 +01:00
parent 4e266253ce
commit ae79210ddd
3 changed files with 21 additions and 2 deletions

View File

@@ -83,10 +83,17 @@ describe("production lint suppressions", () => {
"src/agents/subagent-attachments.ts|no-control-regex|1",
"src/agents/subagent-spawn.ts|no-control-regex|1",
"src/agents/tools/common.ts|typescript/no-explicit-any|1",
"src/channels/plugins/types.plugin.ts|typescript/no-explicit-any|1",
"src/config/types.channels.ts|@typescript-eslint/no-explicit-any|1",
"src/test-utils/vitest-mock-fn.ts|typescript/no-explicit-any|1",
"ui/src/ui/app-tool-stream.ts|typescript/no-base-to-string|1",
"ui/src/ui/presenter.ts|typescript/no-base-to-string|1",
"ui/src/ui/views/config-form.node.ts|typescript/no-base-to-string|3",
"ui/src/ui/views/overview-log-tail.ts|no-control-regex|1",
]);
});
it("keeps the only remaining production no-explicit-any suppression isolated to AnyAgentTool", () => {
it("keeps production no-explicit-any suppressions on an explicit allowlist", () => {
const anySuppressions = collectProductionLintSuppressions().filter(
(entry) => entry.rule === "typescript/no-explicit-any",
);
@@ -96,6 +103,14 @@ describe("production lint suppressions", () => {
file: "src/agents/tools/common.ts",
rule: "typescript/no-explicit-any",
},
{
file: "src/channels/plugins/types.plugin.ts",
rule: "typescript/no-explicit-any",
},
{
file: "src/test-utils/vitest-mock-fn.ts",
rule: "typescript/no-explicit-any",
},
]);
});
});