chore: clear pre-existing lint warnings

Annotate the intentional NUL-byte regex in log-sink, drop two stale
eslint-disable directives whose underlying any-uses are gone, and swap
@ts-ignore for @ts-expect-error in routes.test.ts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-25 14:19:28 -07:00
parent 55cef71b8f
commit 633644a665
4 changed files with 3 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import type { LogEntry } from "./log-ring-buffer.js";
// The engine's createLogger() prefixes messages with a null-byte-delimited
// severity marker so we can recover the original intent when routed via
// console.error (which is the transport it uses).
// eslint-disable-next-line no-control-regex -- marker is NUL-delimited by design
const LOG_LEVEL_MARKER_REGEX = /^\u0000fnlvl=(info|warn|error)\u0000\s*/;
/**

View File

@@ -73,8 +73,7 @@ describe("installAuthFetch", () => {
window.localStorage.clear();
window.history.replaceState({}, "", "/");
window.fetch = originalFetch;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- test cleanup for sentinel
delete (window as any).__fnAuthFetchInstalled;
delete (window as Window & { __fnAuthFetchInstalled?: boolean }).__fnAuthFetchInstalled;
});
it("injects Authorization only for same-origin /api requests", async () => {

View File

@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { describe, it, expect, vi } from "vitest";
import { EventEmitter } from "node:events";
import type { Task } from "@fusion/core";

View File

@@ -8944,7 +8944,7 @@ describe("Planning Mode Routes", () => {
question: "What is your preference?",
description: "Please choose",
};
// @ts-ignore - accessing internal state for testing
// @ts-expect-error - accessing internal state for testing
session!.currentQuestion = mockQuestion;
// Broadcast a complete event after a short delay so the stream ends