Bump @biomejs/biome from 1.9.4 to 2.4.16#293
Conversation
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.4 to 2.4.16. - [Release notes](https://github.com/biomejs/biome/releases) - [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md) - [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.4.16/packages/@biomejs/biome) --- updated-dependencies: - dependency-name: "@biomejs/biome" dependency-version: 2.4.16 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR updates the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Line 48: Replace all placeholder biome-ignore suppressions and update config
for Biome 2.x: find occurrences of the comment pattern containing
"<explanation>" (e.g., in tsup.config.ts) and either provide a real suppression
reason or remove/retarget the suppression to the correct rule (do not leave the
placeholder), update any suppression with an empty/missing reason to include a
valid message, and update biome.json keys per the v2 migration guide (e.g.,
change include/ignore to includes and other renamed fields). After making these
edits, run npm run lint and npm run lint:fix to confirm the lint errors are
resolved.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: lokalise/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 260b9271-7954-4d2e-9ba3-b524c1dd2768
📒 Files selected for processing (1)
package.json
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.9.4", | ||
| "@biomejs/biome": "^2.4.16", |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
Biome 2.0 breaking changes and migration guide
💡 Result:
Biome 2.0 was officially released on June 17, 2025 [1]. It introduced several breaking changes as part of a major architectural update [2][1]. Migration Guide To upgrade to Biome 2.0, you should update the package and use the built-in migration tool to automate most configuration updates [3][1]. 1. Install the Biome package: npm install --save-dev --save-exact @biomejs/biome@2.0.6 (or your preferred package manager) [3][4]. 2. Run the migration command: npx @biomejs/biome migrate --write [1][4]. The migration command will automatically update your configuration file to mitigate many of the breaking changes [3][4]. However, you should carefully review the output, as some manual interventions may be required [3][4]. Key Breaking Changes Some of the most significant breaking changes in Biome 2.0 include: Configuration Changes: - Configuration fields: 'include' and 'ignore' are removed and replaced by 'includes' [2][4]. - Path resolution: Globs and paths are now relative to the configuration file, rather than the working directory [2][4]. - CLI options: The '--config-path' option has been removed from 'biome lsp-proxy' and 'biome start' [3][2]. - Deprecated options: Removed 'indentSize' and the 'all' option from the linter [2][4]. - Glob patterns: Biome no longer automatically prepends '/ ' to globs [3][4]. Linter and Features: - Rule changes: Rules in the 'style' group no longer emit errors by default; they must be configured to do so if desired [3][4]. Some recommended rules have also been adjusted to be less restrictive [2]. - Syntax support: The 'assert' syntax (used for imports) is no longer supported and has been replaced by the 'with' syntax [3][4]. - Import Organizer: This component now sorts imports differently than in previous versions [3][4]. - Rome legacy: Rome-related features are no longer supported [3][4]. For full details on these changes and any necessary manual steps, consult the official Biome v2 upgrade guide [3].
Citations:
- 1: https://biomejs.dev/blog/biome-v2/
- 2: https://biomejs.dev/internals/changelog/6/
- 3: https://biomejs.dev/guides/upgrade-to-biome-v2/
- 4: https://github.com/biomejs/website/blob/main/src/content/docs/guides/upgrade-to-biome-v2.mdx
🏁 Script executed:
npm run lint
npm run lint:fixRepository: lokalise/node-core
Length of output: 29232
Fix Biome 2.x ignore-suppression breakage before merge (lint currently fails)
Biome 2.x rejects the existing biome-ignore suppressions: lint reports // biome-ignore ...: <explanation> placeholder errors (“A suppression shouldn't have an placeholder”) and a parse error where the suppression has an empty/missing reason in tsup.config.ts. Replace <explanation> with a real reason (or remove/correct the suppression to target the correct rule), then re-run npm run lint / npm run lint:fix.
Also double-check biome.json against the v2 migration guide (e.g., include/ignore → includes) to avoid additional config-breaking issues.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@package.json` at line 48, Replace all placeholder biome-ignore suppressions
and update config for Biome 2.x: find occurrences of the comment pattern
containing "<explanation>" (e.g., in tsup.config.ts) and either provide a real
suppression reason or remove/retarget the suppression to the correct rule (do
not leave the placeholder), update any suppression with an empty/missing reason
to include a valid message, and update biome.json keys per the v2 migration
guide (e.g., change include/ignore to includes and other renamed fields). After
making these edits, run npm run lint and npm run lint:fix to confirm the lint
errors are resolved.
|
Superseded by #294. |
Bumps @biomejs/biome from 1.9.4 to 2.4.16.
Release notes
Sourced from @biomejs/biome's releases.
... (truncated)
Changelog
Sourced from @biomejs/biome's changelog.
... (truncated)
Commits
5f4ea56ci: release (#10326)de2a33cfix(core): regression in emitted types (#10478)d835303docs: remove redundant default phrase inuseConsistentObjectDefinitionsrul...4f1aaf2fix: incorrect build when using build or test (#10426)dc73b6brefactor: make plugins opt-in via feature gate (#10418)e71f584feat(useDestructuring): add options for assignment/declaration and improve di...9b1577ffix(config): support trailingCommas in overrides (#10318)9dd3271ci: release (#10210)7b8d4e1feat(lint/html/vue): adduseVueValidVFor(#10195)ba3480efeat(lint/js): adduseTestHooksInOrder(#9394)Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for
@biomejs/biomesince your current version.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)