Biome 2 can't read our lint config

Aperta
#20 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bun, typescript
Ambito
tooling

Direzione di ricerca

Start with the root biome.json and the Biome migration on the #16 branch; run bunx biome migrate --write as described, then run bun run lint and bun run verify. Check that every existing ignored path remains ignored, carry confirm, alert, and prompt into the 2.x deniedGlobals object with replacement guidance, and review any new rule failures. Done when both commands pass and the migration preserves those requirements.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

dependencies help wanted javascript

Dependabot's #16 moves Biome from 1.9.4 to 2.6.9, and version 2 won't read our biome.json. At d3f9dcc0, lint stops before it looks at a single file:

× Found an unknown key `organizeImports`.
× Found an unknown key `ignore`.
× deniedGlobals has an incorrect type, expected an object, but received an array.

Where

  • biome.json at the repository root
  • biome-ignore comments that name rules renamed in 2.x

What to change

Biome ships a migration for this: bunx biome migrate --write on the #16 branch does most of it. Then run lint across the repository and fix what's left. Version 2 brings new recommended rules, and some will fire on code that was fine before.

Two things to keep:

  • Every path we currently ignore must stay ignored. Check files.ignore lands in the 2.x equivalent and not somewhere it's read differently.
  • deniedGlobals keeps confirm, alert and prompt out of the app, because a native dialog blocks the page. In 2.x it's an object. Carry all three across, and give each a message that says what to use instead.

If a new rule fires hundreds of times, turn it off in its own commit and say why in the PR. I'd rather review it as its own change.

Test

bun run lint
bun run verify

verify runs lint as one of its gates, so both must pass before #16 can merge.

Lingua principale
TypeScript
Stelle
13
Fork
3
Merge medio
38m
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Sentrello/Sentrello

Tutte le issue di Sentrello/Sentrello

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.