Repository navigation
chore: replace Biome's deprecated recommended field with preset - #11
Merged
Merged
Conversation
Biome 2.5 deprecates linter.rules.recommended and reports it as an info
diagnostic on every `biome check`, so CI printed it on each run.
This is written by hand: `biome migrate --write` turns this file's
one-line `{ "recommended": true }` into `"preset": "none"`, which
turns every rule off (biomejs/biome#10716). With `"preset":
"recommended"` the enabled rules are the same as before.
This was referenced Oct 18, 2026
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Oct 18, 2026
…83) Biome 2.5 deprecates `linter.rules.recommended` in favor of `linter.rules.preset`. `biome check` reports the old field as an info diagnostic on every run, so CI printed it on every `cargo xtask check` ([for example](https://github.com/hyperstructure/fctl/actions/runs/39148152288/job/117736138881?pr=82)). `web/biome.json` now uses `"preset": "recommended"`, which is what `biome migrate --write` writes. Biome stays at 2.5.15. How I verified it: - `npm run check --workspace web` passes and prints no diagnostics (before: `Found 1 info`). - `biome rage --linter` lists the same 214 enabled rules before and after. The only line that changes in its report is `Recommended: true`, which becomes `unset`. - A file containing `debugger` and `==` still gets `suspicious/noDebugger` and `suspicious/noDoubleEquals`, under both the old config and the new one. The same change in the design system and the site: hyperstructure/design#11, hyperstructure/fctl-site#15. In design, `biome migrate --write` writes `"preset": "none"` instead, which turns every rule off (biomejs/biome#10716), so that change is written by hand. This pull request's first CI run failed on `link::tests::a_second_supervisor_leaves_the_socket_alone`, a flaky fctl-agent test unrelated to this change; #84 fixes it. The run after merging `main` passed. Session: https://app.fctl.sh/s/ses_01M57ZX7KDDYZ1FMZ1BRWKXXVV Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
kalaspuff
pushed a commit
to hyperstructure/fctl-site
that referenced
this pull request
Oct 18, 2026
Biome 2.5 deprecates `linter.rules.recommended` in favor of `linter.rules.preset`. `biome check` reports the old field as an info diagnostic on every run, so CI printed it on every `npm run check`. `biome.json` now uses `"preset": "recommended"`, which is what `biome migrate --write` writes. Biome stays at 2.5.15. How I verified it: - `npm run check` passes. The deprecation notice is gone; the two `noImportantStyles` warnings about the `<noscript>` styles in `404.html` and `500.html` are still there, unchanged by this. - `biome rage --linter` lists the same 215 enabled rules before and after. The only line that changes in its report is `Recommended: true`, which becomes `unset`. - A file containing `debugger` and `==` still gets `suspicious/noDebugger` and `suspicious/noDoubleEquals`. The same change in fctl and the design system: hyperstructure/fctl#83, hyperstructure/design#11. Session: https://app.fctl.sh/s/ses_01M57ZX7KDDYZ1FMZ1BRWKXXVV Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Biome 2.5 deprecates
linter.rules.recommendedin favor oflinter.rules.preset.biome checkreports the old field as an info diagnostic on every run, so CI printed it on everynpm run check.biome.jsonnow uses"preset": "recommended". Biome stays at 2.5.15.I wrote this by hand because
biome migrate --writegets this file wrong. It turns the one-line"rules": { "recommended": true }into"preset": "none", which turns every lint rule off, andnpm run checkstill passes afterwards. Biome readstruewith its trailing space as something other thantrue(biomejs/biome#10716, still open in 2.5.15). Configs with"recommended": trueon a line of its own migrate correctly.How I verified it:
npm run checkpasses and prints no diagnostics (before:Found 1 info).biome rage --linterlists the same 215 enabled rules before and after (afterbiome migrate, it listed none). The only line that changes in its report isRecommended: true, which becomesunset.debuggerand==still getssuspicious/noDebuggerandsuspicious/noDoubleEquals.The same change in fctl and the site: hyperstructure/fctl#83, hyperstructure/fctl-site#15.
Session: https://app.fctl.sh/s/ses_01M57ZX7KDDYZ1FMZ1BRWKXXVV