Bump @biomejs/biome from 1.9.4 to 2.4.4#260
Conversation
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.4 to 2.4.4. - [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.4/packages/@biomejs/biome) --- updated-dependencies: - dependency-name: "@biomejs/biome" dependency-version: 2.4.4 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
|
Note
|
| Cohort / File(s) | Summary |
|---|---|
Dependency Version Update package.json |
Bumped @biomejs/biome devDependency from ^1.9.4 to ^2.4.4, updating to a major version with potential breaking changes in the linting/formatting tool. |
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~3 minutes
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Description check | The description is missing required sections from the template: a 'Changes' section and incomplete 'Checklist' items (only labels are partially addressed but documentation/tests sections lack acknowledgment). | Add a 'Changes' section describing the update, and complete all checklist items including explicit confirmation about documentation and test changes. |
✅ Passed checks (2 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title clearly and concisely describes the main change: bumping the @biomejs/biome dependency from version 1.9.4 to 2.4.4. |
| 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
- Post copyable unit tests in a comment
- Commit unit tests in branch
dependabot/npm_and_yarn/biomejs/biome-2.4.4
Comment @coderabbitai help to get the list of available commands and usage tips.
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: The project bumped `@biomejs/biome` to v2.x which introduces breaking
config changes; update biome.json to the new v2 schema (replace
files.include/files.ignore with includes array, adjust rule/severity keys, and
verify glob patterns are relative to the config file), then run the CLI
migration and checks: execute biome migrate --write to apply automatic changes
and then run biome check and biome check --write to validate/fix remaining
issues; locate and update the biome.json config and re-run the commands until no
migration warnings remain.
ℹ️ Review info
Configuration used: Repository: lokalise/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
package.json
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.9.4", | ||
| "@biomejs/biome": "^2.4.4", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check for biome configuration files and how biome is used in the project
echo "=== Biome configuration files ==="
find . -type f \( -name "biome.json" -o -name "biome.jsonc" \) 2>/dev/null | head -20
echo -e "\n=== Biome scripts in package.json ==="
rg -A 1 -B 1 'biome' package.json
echo -e "\n=== Dependencies related to biome ==="
rg '@biomejs|@lokalise' package.jsonRepository: lokalise/node-core
Length of output: 738
🌐 Web query:
breaking changes @biomejs/biome 2.0 from 1.9
💡 Result:
Key breaking changes when upgrading @biomejs/biome 1.9 → 2.0:
-
Config file paths/globs semantics changed
- Globs/paths in config are now resolved relative to the configuration file, not the current working directory. [1]
files.include/files.ignore(and similarinclude/ignoreusage) are removed and replaced by a singleincludesarray with different glob semantics (notably*vs**/*, and negation via!). [1][2]
-
Rome-legacy features removed
- No more
rome.json,rome-ignorecomments,ROME_BINARY, and legacy suppression formats. [1][2]
- No more
-
LSP/daemon CLI change
--config-pathwas removed frombiome lsp-proxyandbiome start(plugins/editors must use workspace configuration instead). [1][2]
-
Linter behavior/severity changes
- Default severities were reworked (more nuance than “recommended=error”). [1]
- Some previously “recommended and CI-blocking” rules were made less strict (can be breaking if you relied on them to fail CI). [1][2]
linter.rules.allandlinter.rules.<group>.allwere removed. [1][2]
-
Rule/config option breaking changes
noRestrictedGlobals:deniedGlobalschanged from array → record/map (supports per-global custom messages). [1]noUnusedVariablesno longer reports unused function parameters (usenoUnusedFunctionParameters). [1]- Deprecated rules were deleted (e.g.
noConsoleLog,noInvalidNewBuiltin, etc.). [1] useNamingConvention: removedenumMemberCaseoption (useconventions). [1]
-
Formatter / CLI option breaking changes
.jsonformatter no longer adds trailing commas even ifjson.formatter.trailingCommas=true. [1]- Formatting aligns with Prettier’s newer string-escape normalization behavior (can change output). [1]
- Several formatter CLI options accept fewer enum values (e.g.
--trailing-commasno longer acceptsES5/All/None, etc.). [1] indentSizeoption (and related CLI flags) removed; useindentWidth. [1]trailingCommaoption removed; usetrailingCommas. [1]biome check --apply/--apply-unsaferemoved; use--write/--write --unsafe. [1]
-
JS syntax support
- Import assertions
assert { ... }are no longer supported; usewith { ... }. [1][2]
- Import assertions
Practical tip: run biome migrate --write after upgrading; it auto-updates many config-breaking changes (e.g., includes, deniedGlobals, removed/deprecated options/rules). [1][2]
Sources: Biome v2.0.0 changelog/version history [1], “Upgrade to Biome v2” guide [2].
Verify biome.json compatibility with v2.x configuration changes and run migration.
This major version upgrade (1.x → 2.x) includes breaking changes to configuration syntax. The CLI commands used (biome check and biome check --write) are compatible, but the biome.json configuration file requires updates:
- Glob semantics changed (now resolved relative to config file, not working directory)
files.include/files.ignorereplaced withincludesarray syntax- Various rule and severity adjustments
Since @lokalise/biome-config is already at v2.0.0, compatibility is maintained. After upgrading, run biome migrate --write to automatically update config-breaking changes.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 48, The project bumped `@biomejs/biome` to v2.x which
introduces breaking config changes; update biome.json to the new v2 schema
(replace files.include/files.ignore with includes array, adjust rule/severity
keys, and verify glob patterns are relative to the config file), then run the
CLI migration and checks: execute biome migrate --write to apply automatic
changes and then run biome check and biome check --write to validate/fix
remaining issues; locate and update the biome.json config and re-run the
commands until no migration warnings remain.
|
Superseded by #261. |
Bumps @biomejs/biome from 1.9.4 to 2.4.4.
Release notes
Sourced from
@biomejs/biome's releases.... (truncated)
Changelog
Sourced from
@biomejs/biome's changelog.... (truncated)
Commits
6c296eaci: release (#9160)312b6dbci: release (#9116)b99e7dbci: release (#9104)4a5ff40feat(lint): add Playwright ESLint rules (#8960)5153f2fci: release (#9094)4cc531cchore: docs that break website (#9077)bf6e5f9ci: release (#9045)e014336feat: promote rules for v2.4 (#9011)7e33fd5Merge remote-tracking branch 'origin/main' into nextdf21006ci: release (#8973)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)Summary by CodeRabbit