mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-25 23:47:20 +00:00
test(lint): refresh suppression tail guardrail
This commit is contained in:
@@ -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",
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user