Skip to content

chore(core): drop redundant gauge axe type assertion - #420

Merged
coryrylan merged 1 commit into
mainfrom
topic/upkeep/lint/gauge-axe-assertion
Oct 20, 2026
Merged

coryrylan merged 1 commit into
mainfrom
topic/upkeep/lint/gauge-axe-assertion

Conversation

@cursor

@cursor cursor Bot commented Oct 19, 2026

Copy link
Copy Markdown

Selected task

Lint mode B. The selector chose @typescript-eslint/no-unnecessary-type-assertion in projects/core/src/gauge/gauge.test.axe.ts.

@typescript-eslint/no-unnecessary-type-assertion is enforced with 1 suppressed violation left in this file, the smallest remaining group. 220 suppressions remain across the repository.

Measurement

  • Before: 1 suppression in src/gauge/gauge.test.axe.ts, and 220 suppressions repo-wide.
  • After: that file has 0 suppressions, and 219 remain repo-wide. Core holds 137 across 24 files.
  • The fixture query no longer uses as Gauge[]. querySelectorAll(Gauge.metadata.tag) already returns Gauge elements.

Public API

No public API changed. gauge.ts is untouched.

Left alone

projects/core/src/gauge/gauge.test.ts still asserts as Gauge[] and keeps its own suppression. This run only clears the file the selector named.

Validation

  • projects/core lint passed.
  • pnpm run test: 2120 passed.
  • pnpm run test:types: already fresh, skipped.
  • pnpm run test:axe: 87 passed, including gauge.test.axe.ts.
  • pnpm run test:ssr: already fresh, skipped.
  • pnpm run test:lighthouse: 80 passed.
  • pnpm run test:visual: already fresh, skipped.
  • Root CI=true pnpm run ci passed (4 ran, 181 skipped).
  • git diff --check passed.
  • Lint of this file still passes with the @internals/testing dist moved aside.
Open in Web View Automation 

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 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/elements/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 6c00b52e-fbad-4dbd-a0da-092ecc8b8a3d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@cursor
cursor Bot marked this pull request as ready for review October 19, 2026 06:17
@coryrylan coryrylan added the upkeep label Oct 19, 2026 — with Cursor
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/vitest

main 1362388 topic/upkeep/lint/ga... bb67f15 +/-
99% 99% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@coryrylan
coryrylan merged commit 5cc77b0 into main Oct 20, 2026
18 checks passed
@coryrylan
coryrylan deleted the topic/upkeep/lint/gauge-axe-assertion branch October 20, 2026 02:35
@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.2.10 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 1.0.2 🎉

Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants