Skip to content

fix: make lint pass on Biome 2.x - #1

Open
sstreichan wants to merge 1 commit into
CommandCodeAI:mainfrom
sstreichan:fix/biome-2-config
Open

sstreichan wants to merge 1 commit into
CommandCodeAI:mainfrom
sstreichan:fix/biome-2-config

Conversation

@sstreichan

Copy link
Copy Markdown

Was kaputt war

pnpm lint (und damit CI) scheiterte schon am Config-Parsen: biome.json nutzte den Biome-1.x-Key linter.preset, den Biome 2.5.14 (die Version im Lockfile) als unknown verwirft.

Fix

  • biome.json: preset entfernt — in Biome 2.x sind die recommended Rules per Default aktiv, und rules.recommended ist in 2.5 deprecated.
  • biome check --write . über die 5 Dateien angewendet, die nicht zum eigenen Style passten (Import-Reihenfolge, 80-Zeilen-Linie).

Checks

  • pnpm lint — clean, keine Warnungen
  • pnpm typecheck — ok
  • pnpm test — 24/24 grün

Assignee: Autor selbst · Reviewer: CheckMate-Bot

The config used the Biome 1.x `linter.preset` key, which Biome 2.5
rejects as unknown, so `pnpm lint` (and CI) failed at config parse.
Recommended rules are on by default in Biome 2.x, so the key is simply
removed. Also apply the project's own format/import order to the files
that had drifted, so `biome check` is clean.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant