Biome 2 can't read our lint config

オープン
#20 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bun, typescript
領域
tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
13
フォーク
3
平均マージ
38分
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Sentrello/Sentrello のほかの issue

Sentrello/Sentrello の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。