Repository navigation
chore(biome): migrate deprecated recommended fields to preset - #983
Merged
Merged
Conversation
Biome 2.6 deprecates `linter.rules.recommended` in favour of `linter.rules.preset`, emitting a DEPRECATED info diagnostic in CI. Applied `biome migrate --write`, which also converts `assist.actions.recommended` to the equivalent `preset` form. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01A3PgYC6XkJrqn4AmPxBLyn
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.
Why
pnpm lint:ci(Biome 2.6.2) emits adeserialize DEPRECATEDdiagnostic onbiome.json:It only flags
linter.rules.recommended. If we leave it, the config breaks when Biome 3 removes the field.What
Ran
biome migrate --write:linter.rules.recommended: true→linter.rules.preset: "recommended"assist.actions.recommended: true→assist.actions.preset: "recommended". The schema doesn't mark this one deprecated yet, butpresetis its documented replacement. Converting it now keeps both sections consistent and is what the official migrator produces.The schema says
preset: "recommended"enables the same rule set asrecommended: true, and explicit group and rule overrides still take precedence. So lint behaviour stays the same.Verification
biome ci --no-errors-on-unmatched: deprecation info is gone; 69 files checked, no diagnostics.biome linton all 69 files before and after: the output is the same apart from the removed deprecation notice.Generated by Claude Code