Bump @biomejs/biome from 1.9.4 to 2.4.12#277
Conversation
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.4 to 2.4.12. - [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.12/packages/@biomejs/biome) --- updated-dependencies: - dependency-name: "@biomejs/biome" dependency-version: 2.4.12 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Line 48: Replace all biome-ignore comments that use the literal placeholder
"<explanation>" with concrete reasons (e.g., change "// biome-ignore
lint/suspicious/noExplicitAny: <explanation>" to "// biome-ignore
lint/suspicious/noExplicitAny: intentional use") wherever that pattern appears
(notably in the common types and ConfigScope tests), and update the biome schema
version from 2.4.11 to 2.4.12 in your biome.json (or run "biome migrate
--write") so the CLI and schema match the "@biomejs/biome": "^2.4.12"
dependency.
🪄 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: a1c7e80e-2f1e-4521-bcab-b56417b57530
📒 Files selected for processing (1)
package.json
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.9.4", | ||
| "@biomejs/biome": "^2.4.12", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Validate biome.json config against the new version and check for errors
# Check if biome.json is valid with the new version
echo "=== Validating biome.json with Biome 2.4.12 ==="
npx `@biomejs/biome`@2.4.12 check --config-path=biome.json --max-diagnostics=50 . 2>&1 | head -100
# Show the schema version currently in use
echo -e "\n=== Current schema version in biome.json ==="
rg -n '\$schema' biome.jsonRepository: lokalise/node-core
Length of output: 4825
🌐 Web query:
Biome 2.0 migration guide breaking changes from version 1.x
💡 Result:
To migrate from Biome 1.x to 2.0+, follow the official upgrade guide from biomejs.dev. Upgrade steps: 1. Install Biome 2.0.6 or later: npm install --save-dev --save-exact @biomejs/biome@2.0.6 (or equivalent for pnpm/yarn/bun/deno). 2. Run npx @biomejs/biome migrate --write to automatically update your biome.json/biome.jsonc configuration for most breaking changes. Review the output for any manual steps needed. Key breaking changes (biome migrate handles many automatically): - Rome-related features removed: Rename rome.json to biome.json; // rome-ignore to // biome-ignore; ROME_BINARY to BIOME_BINARY; suppression format changed to // biome-ignore lint/: . - --config-path CLI option removed from biome lsp-proxy and biome start (use editor plugins that support workspace/configuration). - Globs/paths: Now resolved from config file location (not working directory); no automatic / prepending; include/ignore merged into includes with new syntax. - linter 'all' option removed (enable rules explicitly). - Style rules: No longer error by default (warn unless configured); some recommended rules changed. - Import organizer: New sorter with different order (e.g., non-node: Node modules not prioritized before others); config moved from organizeImports to assist.actions.source.organizeImports. - Syntax assert unsupported (use with syntax). - Linter behavior: Recommended rules now warn (not error); style group warns by default. - Extensions: Update Zed/VS Code extensions for compatibility. - Other: noUndeclaredVariables ignores TS types; JSON formatter no trailing commas; etc. Biome v2 released June 2025 with type-aware linting. Current version ~2.4.x as of 2026. For full details, see https://biomejs.dev/guides/upgrade-to-biome-v2/. Run biome migrate first when upgrading from 1.x.
Citations:
- 1: https://biomejs.dev/guides/upgrade-to-biome-v2/
- 2: https://next.biomejs.dev/guides/upgrade-to-biome-v2/
- 3: https://biomejs.dev/blog/biome-v2/
- 4: https://biomejs.dev/uk/guides/upgrade-to-biome-v2
- 5: https://biomejs.dev/internals/changelog/version/2-0-0
Fix biome suppression comments before upgrading to v2.4.12—several use an invalid placeholder format.
The upgrade to v2.4.12 introduces breaking changes in suppression comment syntax. Multiple files contain biome-ignore comments with <explanation> placeholders, which are not valid in v2.4.12:
src/common/commonTypes.ts:1src/config/ConfigScope.spec.ts(lines 124, 152, 183, 223, 835)
These must be rewritten with actual reasons instead of placeholders (e.g., // biome-ignore lint/suspicious/noExplicitAny: intentional use instead of // biome-ignore lint/suspicious/noExplicitAny: <explanation>).
Additionally, the biome.json schema version is at 2.4.11 but the CLI will be 2.4.12. Update the schema reference to 2.4.12 or run biome migrate --write to auto-update both issues.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 48, Replace all biome-ignore comments that use the
literal placeholder "<explanation>" with concrete reasons (e.g., change "//
biome-ignore lint/suspicious/noExplicitAny: <explanation>" to "// biome-ignore
lint/suspicious/noExplicitAny: intentional use") wherever that pattern appears
(notably in the common types and ConfigScope tests), and update the biome schema
version from 2.4.11 to 2.4.12 in your biome.json (or run "biome migrate
--write") so the CLI and schema match the "@biomejs/biome": "^2.4.12"
dependency.
Bumps @biomejs/biome from 1.9.4 to 2.4.12.
Release notes
Sourced from
@biomejs/biome's releases.... (truncated)
Changelog
Sourced from
@biomejs/biome's changelog.... (truncated)
Commits
baaacfcci: release (#9890)e0ba71dfeat: implement useIframeSandbox (#9949)2cff700feat(lint/js): adduseVarsOnTop(#9861)27dd7b1feat(react/js): add noComponentHookFactories (#9916)0d0e611feat(js_analyze): implement useReactAsyncServerFunction (#9909)f1c1363feat(lint/js): adduseStringStartsEndsWith(#9796)d417803feat(js_analyze): implement noJsxNamespace (#9913)9701a33feat(lint/js): addnoIdenticalTestTitle(#9376)c499f46feat(lint): implement useReduceTypeParameter nursery rule (#9577)40bd180feat(lint/js): addnoExcessiveSelectorClasses(#9866)Maintainer changes
This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~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)