From fda44b10f7d302d9c2fa24c6dcbbfb84fcca393c Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Tue, 24 Feb 2026 14:48:10 -0800 Subject: [PATCH] fix: remove unused biome-ignore suppression comments in shared type-guards (#1892) The `packages/shared/src/type-guards.ts` file had 4 `biome-ignore lint/plugin:` comments that were ineffective because the shared package does not configure the GritQL plugin in its biome config. Biome reported these as `suppressions/unused` warnings. Removing them brings the shared package to zero lint warnings. Fixes #1889 Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 --- packages/shared/package.json | 2 +- packages/shared/src/type-guards.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/shared/package.json b/packages/shared/package.json index e394c425..64b226ec 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/spawn-shared", - "version": "0.1.0", + "version": "0.1.1", "type": "module", "main": "src/index.ts", "dependencies": { diff --git a/packages/shared/src/type-guards.ts b/packages/shared/src/type-guards.ts index fb7e6dfa..156e96a4 100644 --- a/packages/shared/src/type-guards.ts +++ b/packages/shared/src/type-guards.ts @@ -1,26 +1,22 @@ // shared/type-guards.ts — Runtime type guards (replaces unsafe `as` casts on non-API values) export function isString(val: unknown): val is string { - // biome-ignore lint/plugin: this IS the type guard definition return typeof val === "string"; } export function isNumber(val: unknown): val is number { - // biome-ignore lint/plugin: this IS the type guard definition return typeof val === "number"; } export function hasStatus(err: unknown): err is { status: number; } { - // biome-ignore lint/plugin: composite guard uses typeof internally return err !== null && typeof err === "object" && "status" in err && typeof err.status === "number"; } export function hasMessage(err: unknown): err is { message: string; } { - // biome-ignore lint/plugin: composite guard uses typeof internally return err !== null && typeof err === "object" && "message" in err && typeof err.message === "string"; }