Skip to content

Bump @biomejs/biome from 1.9.4 to 2.4.12#277

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/biomejs/biome-2.4.12
Open

Bump @biomejs/biome from 1.9.4 to 2.4.12#277
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/biomejs/biome-2.4.12

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 20, 2026

Bumps @biomejs/biome from 1.9.4 to 2.4.12.

Release notes

Sourced from @​biomejs/biome's releases.

Biome CLI v2.4.12

2.4.12

Patch Changes

  • #9376 9701a33 Thanks @​dyc3! - Added the nursery/noIdenticalTestTitle lint rule. This rule disallows using the same title for two describe blocks or two test cases at the same nesting level.

    describe("foo", () => {});
    describe("foo", () => {
      // invalid: same title as previous describe block
      test("baz", () => {});
      test("baz", () => {}); // invalid: same title as previous test case
    });
  • #9889 7ae83f2 Thanks @​dyc3! - Improved the diagnostics for useForOf to better explain the problem, why it matters, and how to fix it.

  • #9916 27dd7b1 Thanks @​Jayllyz! - Added a new nursery rule noComponentHookFactories, that disallows defining React components or custom hooks inside other functions.

    For example, the following snippets trigger the rule:

    function createComponent(label) {
      function MyComponent() {
        return <div>{label}</div>;
      }
      return MyComponent;
    }
    function Parent() {
      function Child() {
        return <div />;
      }
      return <Child />;
    }
  • #9980 098f1ff Thanks @​ematipico! - Fixed #9941: Biome now emits a warning diagnostic when a file exceed the files.maxSize limit.

  • #9942 9956f1d Thanks @​dyc3! - Fixed #9918: useConsistentTestIt no longer panics when applying fixes to chained calls such as test.for([])("x", () => {});.

  • #9891 4d9ac51 Thanks @​dyc3! - Improved the noGlobalObjectCalls diagnostic to better explain why calling global objects like Math or JSON is invalid and how to fix it.

  • #9902 3f4d103 Thanks @​ematipico! - Fixed #9901: the command lint --write is now idempotent when it's run against HTML-ish files that contains scripts and styles.

  • #9891 4d9ac51 Thanks @​dyc3! - Improved the noMultiStr diagnostic to explain why escaped multiline strings are discouraged and what to use instead.

... (truncated)

Changelog

Sourced from @​biomejs/biome's changelog.

2.4.12

Patch Changes

  • #9376 9701a33 Thanks @​dyc3! - Added the nursery/noIdenticalTestTitle lint rule. This rule disallows using the same title for two describe blocks or two test cases at the same nesting level.

    describe("foo", () => {});
    describe("foo", () => {
      // invalid: same title as previous describe block
      test("baz", () => {});
      test("baz", () => {}); // invalid: same title as previous test case
    });
  • #9889 7ae83f2 Thanks @​dyc3! - Improved the diagnostics for useForOf to better explain the problem, why it matters, and how to fix it.

  • #9916 27dd7b1 Thanks @​Jayllyz! - Added a new nursery rule noComponentHookFactories, that disallows defining React components or custom hooks inside other functions.

    For example, the following snippets trigger the rule:

    function createComponent(label) {
      function MyComponent() {
        return <div>{label}</div>;
      }
      return MyComponent;
    }
    function Parent() {
      function Child() {
        return <div />;
      }
      return <Child />;
    }
  • #9980 098f1ff Thanks @​ematipico! - Fixed #9941: Biome now emits a warning diagnostic when a file exceed the files.maxSize limit.

  • #9942 9956f1d Thanks @​dyc3! - Fixed #9918: useConsistentTestIt no longer panics when applying fixes to chained calls such as test.for([])("x", () => {});.

  • #9891 4d9ac51 Thanks @​dyc3! - Improved the noGlobalObjectCalls diagnostic to better explain why calling global objects like Math or JSON is invalid and how to fix it.

  • #9902 3f4d103 Thanks @​ematipico! - Fixed #9901: the command lint --write is now idempotent when it's run against HTML-ish files that contains scripts and styles.

  • #9891 4d9ac51 Thanks @​dyc3! - Improved the noMultiStr diagnostic to explain why escaped multiline strings are discouraged and what to use instead.

  • #9966 322675e Thanks @​siketyan! - Fixed #9113: Biome now parses and formats @media and other conditional blocks correctly inside embedded CSS snippets.

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for @​biomejs/biome since your current version.


Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated development dependencies to the latest versions.

Walkthrough

The @biomejs/biome development dependency in package.json has been upgraded from version ^1.9.4 to ^2.4.12. This update affects the linting tools invoked by existing lint and lint:fix scripts, as well as any other Biome-driven checks executed during development and continuous integration workflows. No other dependencies, scripts, or package metadata were modified.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes release notes and changelog details but lacks required template sections: no explicit 'Changes' section summary, missing label selection (though PR metadata shows labels applied), and no documentation/test update checklist confirmations. Add a 'Changes' section summarizing the key updates, and complete the checklist items including label selection and documentation/test update confirmations.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and clearly describes the main change: upgrading the @biomejs/biome dependency from version 1.9.4 to 2.4.12.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/npm_and_yarn/biomejs/biome-2.4.12

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 040e31f and e6f96c7.

📒 Files selected for processing (1)
  • package.json

Comment thread package.json
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@biomejs/biome": "^2.4.12",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 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.json

Repository: 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:


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:1
  • src/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants