Skip to content

[quality] Reduce Biome lint debt: any, !important, unused imports, and unsafe patterns #326

Description

@serge-ivo

Problem

The latest VCQA scan shows lint as one of the weakest categories.

Scan context:

  • Command: pnpm vcqa
  • Lint score: D 45/100
  • 300 lint issues

Dominant findings from the report:

  • 182x Unexpected any. Specify a different type.
  • 54x Avoid the use of the !important style.
  • 14x unused import groups.
  • 10x optional-chain simplifications.
  • Several hook dependency and static-element interaction warnings.

This overlaps with narrower tickets for hook order and accessibility, but the any and !important counts are large enough to track separately.

Acceptance criteria

  • Replace broad any with specific types, unknown plus narrowing, or intentional helper types where appropriate.
  • Remove avoidable !important; move remaining cases behind documented design-system exceptions.
  • Remove unused imports and no-op suppression comments.
  • Do not paper over issues with broad lint disables.
  • pnpm lint improves materially.
  • pnpm vcqa lint score improves from the current D 45/100 baseline.

Notes

Keep this ticket focused on mechanical lint/type cleanup. React hook-order and accessibility bugs are tracked separately.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions