From bb67f1500c0bc439aab3bac432f7a6e74c1d15fb Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 19 Oct 2026 06:07:06 +0000 Subject: [PATCH] chore(core): drop redundant gauge axe type assertion Removes the unnecessary Gauge array assertion in the accessibility fixture. querySelectorAll already returns Gauge elements from the tag map, so the suppression for this file is pruned. The repo-wide count for @typescript-eslint/no-unnecessary-type-assertion goes from 220 to 219. No behavior change. Signed-off-by: Cursor Agent --- projects/core/eslint-suppressions.json | 5 ----- projects/core/src/gauge/gauge.test.axe.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/core/eslint-suppressions.json b/projects/core/eslint-suppressions.json index a4ce612aae..a18a1129f2 100644 --- a/projects/core/eslint-suppressions.json +++ b/projects/core/eslint-suppressions.json @@ -24,11 +24,6 @@ "count": 40 } }, - "src/gauge/gauge.test.axe.ts": { - "@typescript-eslint/no-unnecessary-type-assertion": { - "count": 1 - } - }, "src/gauge/gauge.test.ts": { "@typescript-eslint/no-unnecessary-type-assertion": { "count": 1 diff --git a/projects/core/src/gauge/gauge.test.axe.ts b/projects/core/src/gauge/gauge.test.axe.ts index b72096d4dc..8c2975d9aa 100644 --- a/projects/core/src/gauge/gauge.test.axe.ts +++ b/projects/core/src/gauge/gauge.test.axe.ts @@ -20,7 +20,7 @@ describe(Gauge.metadata.tag, () => { `); - const elements = Array.from(fixture.querySelectorAll(Gauge.metadata.tag)) as Gauge[]; + const elements = Array.from(fixture.querySelectorAll(Gauge.metadata.tag)); await Promise.all(elements.map(gauge => elementIsStable(gauge))); });