Skip to content

feat(css_formatter): format import media comments inline - #10722

Merged
denbezrukov merged 1 commit into
mainfrom
dbezrukov/scss-formatter-64
Jun 22, 2026
Merged

feat(css_formatter): format import media comments inline#10722
denbezrukov merged 1 commit into
mainfrom
dbezrukov/scss-formatter-64

Conversation

@denbezrukov

Copy link
Copy Markdown
Contributor

Summary

Improved CSS/SCSS formatter output for comments between import media queries.

-@import "print.css" print,// comment
-screen;
+@import "print.css" print, // comment
+	screen;

-@media print,// comment
-screen{a{color:red}}
+@media print, // comment
+	screen {
+	a {
+		color: red;
+	}
+}

This PR was implemented with guidance from Codex AI assistant.

Test Plan

  • cargo test -p biome_css_foramtter

@changeset-bot

changeset-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a5f6c50

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

✅ Organic activity

No automation signals detected in the analyzed events.

View full analysis →

This is an automated analysis by AgentScan

@github-actions github-actions Bot added A-Formatter Area: formatter L-CSS Language: CSS and super languages labels Jun 21, 2026
@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 56d5a177-20cc-457e-bd60-2413df88d113

📥 Commits

Reviewing files that changed from the base of the PR and between 2899325 and a5f6c50.

⛔ Files ignored due to path filters (4)
  • crates/biome_css_formatter/tests/specs/css/atrule/import-comments.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_formatter/tests/specs/prettier/scss/comments/4594.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_formatter/tests/specs/scss/at-rule/import-comments.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_formatter/tests/specs/scss/at-rule/media-comments.scss.snap is excluded by !**/*.snap and included by **
📒 Files selected for processing (19)
  • .changeset/fix-css-import-comments.md
  • crates/biome_css_formatter/src/comments.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_and_type_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_condition_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_type_query.rs
  • crates/biome_css_formatter/src/css/lists/media_query_list.rs
  • crates/biome_css_formatter/src/css/lists/parameter_list.rs
  • crates/biome_css_formatter/src/css/statements/import_at_rule.rs
  • crates/biome_css_formatter/src/scss/auxiliary/media_query.rs
  • crates/biome_css_formatter/src/scss/auxiliary/plain_import.rs
  • crates/biome_css_formatter/src/scss/lists/import_item_list.rs
  • crates/biome_css_formatter/src/scss/lists/map_expression_pair_list.rs
  • crates/biome_css_formatter/src/utils/comment_trivia.rs
  • crates/biome_css_formatter/src/utils/import.rs
  • crates/biome_css_formatter/src/utils/media_query_comments.rs
  • crates/biome_css_formatter/src/utils/mod.rs
  • crates/biome_css_formatter/tests/specs/css/atrule/import-comments.css
  • crates/biome_css_formatter/tests/specs/scss/at-rule/import-comments.scss
  • crates/biome_css_formatter/tests/specs/scss/at-rule/media-comments.scss
✅ Files skipped from review due to trivial changes (4)
  • crates/biome_css_formatter/src/css/lists/parameter_list.rs
  • crates/biome_css_formatter/tests/specs/scss/at-rule/import-comments.scss
  • crates/biome_css_formatter/src/scss/auxiliary/media_query.rs
  • .changeset/fix-css-import-comments.md
🚧 Files skipped from review as they are similar to previous changes (14)
  • crates/biome_css_formatter/tests/specs/scss/at-rule/media-comments.scss
  • crates/biome_css_formatter/src/utils/mod.rs
  • crates/biome_css_formatter/src/scss/lists/map_expression_pair_list.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_type_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_and_type_query.rs
  • crates/biome_css_formatter/src/utils/comment_trivia.rs
  • crates/biome_css_formatter/src/utils/media_query_comments.rs
  • crates/biome_css_formatter/src/css/statements/import_at_rule.rs
  • crates/biome_css_formatter/src/comments.rs
  • crates/biome_css_formatter/src/utils/import.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_condition_query.rs
  • crates/biome_css_formatter/src/css/lists/media_query_list.rs
  • crates/biome_css_formatter/src/scss/auxiliary/plain_import.rs
  • crates/biome_css_formatter/src/scss/lists/import_item_list.rs

Walkthrough

A new media_query_comments utility module is introduced with helpers (fill_media_queries, fmt_media_query_node, fmt_media_query_leading) that drive comment-aware rendering of CSS/SCSS media query lists. The write_import_payload function is replaced by a FormatImportClause struct that uses fill_media_queries for media output. All media query node formatters (CssMediaTypeQuery, CssMediaAndTypeQuery, CssMediaConditionQuery, ScssMediaQuery) now delegate fmt_node and fmt_leading_comments to these shared helpers. Two new trivia predicates (has_line_comment, is_leading_comment_on_node) are added, and the place_comment handler chain gains a handle_media_separator_comment step to correctly attach comma-trailing comments to the following media query node. The SCSS import item list formatter is rewritten to be comment-aware. Test fixtures and a changeset document the fix.

Possibly related PRs

  • biomejs/biome#10076: Modifies the same place_comment handler chain in comments.rs, adding a different SCSS map trailing-separator comment placement step.
  • biomejs/biome#10150: Extends place_comment in comments.rs with SCSS @include separator comment handling, touching the same comment-placement control-flow.
  • biomejs/biome#10156: Adds another separator-trailing comment handler to the same CssCommentStyle::place_comment decision chain in comments.rs.

Suggested reviewers

  • ematipico
  • dyc3
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately captures the main change: improved formatting of comments within import media queries in the CSS formatter.
Description check ✅ Passed The description clearly relates to the changeset, providing concrete examples of the before/after formatting behaviour for comments in @import and @media rules.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 dbezrukov/scss-formatter-64

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.changeset/fix-css-import-comments.md:
- Around line 5-12: The changeset description in the file is missing the
required issue link format for bug fixes. Update the description to follow the
changeset guidelines by prefixing it with "Fixed
[`#ISSUE_NUMBER`](https://github.com/biomejs/biome/issues/ISSUE_NUMBER):" where
ISSUE_NUMBER is replaced with the actual GitHub issue number associated with the
CSS formatter comments fix, then follow with the descriptive text about the CSS
formatter now correctly handling comments within import media query lists.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 46fdfbfc-07d6-4aa4-8eb4-eea336d16e3f

📥 Commits

Reviewing files that changed from the base of the PR and between af39586 and 2899325.

⛔ Files ignored due to path filters (4)
  • crates/biome_css_formatter/tests/specs/css/atrule/import-comments.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_formatter/tests/specs/prettier/scss/comments/4594.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_formatter/tests/specs/scss/at-rule/import-comments.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_formatter/tests/specs/scss/at-rule/media-comments.scss.snap is excluded by !**/*.snap and included by **
📒 Files selected for processing (19)
  • .changeset/fix-css-import-comments.md
  • crates/biome_css_formatter/src/comments.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_and_type_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_condition_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/media_type_query.rs
  • crates/biome_css_formatter/src/css/lists/media_query_list.rs
  • crates/biome_css_formatter/src/css/lists/parameter_list.rs
  • crates/biome_css_formatter/src/css/statements/import_at_rule.rs
  • crates/biome_css_formatter/src/scss/auxiliary/media_query.rs
  • crates/biome_css_formatter/src/scss/auxiliary/plain_import.rs
  • crates/biome_css_formatter/src/scss/lists/import_item_list.rs
  • crates/biome_css_formatter/src/scss/lists/map_expression_pair_list.rs
  • crates/biome_css_formatter/src/utils/comment_trivia.rs
  • crates/biome_css_formatter/src/utils/import.rs
  • crates/biome_css_formatter/src/utils/media_query_comments.rs
  • crates/biome_css_formatter/src/utils/mod.rs
  • crates/biome_css_formatter/tests/specs/css/atrule/import-comments.css
  • crates/biome_css_formatter/tests/specs/scss/at-rule/import-comments.scss
  • crates/biome_css_formatter/tests/specs/scss/at-rule/media-comments.scss

Comment on lines +5 to +12
Fixed CSS formatter output for comments between import media queries.

```diff
-@import url("print.css") print,
-/* comment */
-screen;
+@import url("print.css") print, /* comment */ screen;
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n .changeset/fix-css-import-comments.md

Repository: biomejs/biome

Length of output: 371


🏁 Script executed:

# Check if there are other changesets to compare format
ls -la .changeset/ | head -20

Repository: biomejs/biome

Length of output: 385


🏁 Script executed:

# Look for any changeset examples or documentation
find . -name "*.md" -path "*changeset*" -type f | head -10

Repository: biomejs/biome

Length of output: 176


🏁 Script executed:

cat -n .changeset/fix-migrate-trailing-comma.md

Repository: biomejs/biome

Length of output: 464


🏁 Script executed:

cat -n ./.claude/skills/changeset/SKILL.md

Repository: biomejs/biome

Length of output: 5439


🏁 Script executed:

# Look for issue references in recent git history to understand issue number format
git log --oneline --all --grep="CSS\|formatter\|import\|comment" -i | head -20

Repository: biomejs/biome

Length of output: 1615


🏁 Script executed:

# Check the GitHub issues or PR history for context about this changeset
git log --oneline --all | grep -i "css\|import\|comment" | head -10

Repository: biomejs/biome

Length of output: 797


🏁 Script executed:

# Find the issue number associated with the CSS formatter change for import media comments
git log --all --oneline | grep -i "import.*comment\|comment.*import" | head -5

Repository: biomejs/biome

Length of output: 409


🏁 Script executed:

# Look for any PR or issue reference in the most recent CSS formatter commits
git show 2899325e3 --format="%B" | head -30

Repository: biomejs/biome

Length of output: 667


🏁 Script executed:

# Search for related issues or PRs mentioning CSS formatter import comments
git log --all --grep="import.*comment\|media.*query.*comment" -i --oneline | head -10

Repository: biomejs/biome

Length of output: 347


Add the issue link to the changeset.

Per the changeset guidelines, bug fixes must start with Fixed [#NUMBER](issue_link):. The current description lacks the issue number and link entirely. Update to:

Fixed [`#ISSUE_NUMBER`](https://github.com/biomejs/biome/issues/ISSUE_NUMBER): CSS formatter now correctly handles comments within import media query lists, keeping them inline.

Replace ISSUE_NUMBER with the associated GitHub issue number.

🤖 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 @.changeset/fix-css-import-comments.md around lines 5 - 12, The changeset
description in the file is missing the required issue link format for bug fixes.
Update the description to follow the changeset guidelines by prefixing it with
"Fixed [`#ISSUE_NUMBER`](https://github.com/biomejs/biome/issues/ISSUE_NUMBER):"
where ISSUE_NUMBER is replaced with the actual GitHub issue number associated
with the CSS formatter comments fix, then follow with the descriptive text about
the CSS formatter now correctly handling comments within import media query
lists.

Source: Coding guidelines

@denbezrukov
denbezrukov force-pushed the dbezrukov/scss-formatter-64 branch from 2899325 to a5f6c50 Compare June 21, 2026 17:28
@codspeed-hq

codspeed-hq Bot commented Jun 21, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 29 untouched benchmarks
⏩ 227 skipped benchmarks1


Comparing dbezrukov/scss-formatter-64 (a5f6c50) with main (5941df2)2

Open in CodSpeed

Footnotes

  1. 227 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (af39586) during the generation of this report, so 5941df2 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@denbezrukov
denbezrukov merged commit f8a303d into main Jun 22, 2026
31 checks passed
@denbezrukov
denbezrukov deleted the dbezrukov/scss-formatter-64 branch June 22, 2026 08:39
@github-actions github-actions Bot mentioned this pull request Jun 22, 2026
OIRNOIR pushed a commit to OIRNOIR/YouTube-Helper-Server that referenced this pull request Jun 30, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev) ([source](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | imports | patch | [`2.5.0` -> `2.5.1`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.5.0/2.5.1) |

---

### Release Notes

<details>
<summary>biomejs/biome (@&#8203;biomejs/biome)</summary>

### [`v2.5.1`](https://github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#251)

[Compare Source](https://github.com/biomejs/biome/compare/@biomejs/biome@2.5.0...@biomejs/biome@2.5.1)

##### Patch Changes

- [#&#8203;10722](biomejs/biome#10722) [`f8a303d`](biomejs/biome@f8a303d) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed CSS formatter output for comments between import media queries.

  ```diff
  -@&#8203;import url("print.css") print,
  -/* comment */
  -screen;
  +@&#8203;import url("print.css") print, /* comment */ screen;
  ```

- [#&#8203;10738](biomejs/biome#10738) [`9fdc560`](biomejs/biome@9fdc560) Thanks [@&#8203;JamBalaya56562](https://github.com/JamBalaya56562)! - Fixed [#&#8203;9899](biomejs/biome#9899): the `json` and `json-pretty` reporters now escape backslashes in a diagnostic's `location.path`. Previously, paths containing backslashes (such as Windows-style paths) were emitted unescaped, producing invalid JSON.

  ```diff
  -    "path": "src\account\setup-passkey.tsx",
  +    "path": "src\\account\\setup-passkey.tsx",
  ```

- [#&#8203;10626](biomejs/biome#10626) [`5f837df`](biomejs/biome@5f837df) Thanks [@&#8203;tom-groves](https://github.com/tom-groves)! - Fixed [#&#8203;10625](biomejs/biome#10625): `biome migrate` no longer emits an invalid trailing comma when a renamed rule (such as `noConsoleLog` → `noConsole`) is the last member of its rule group. Previously this produced malformed output that aborted the migration of a strict-JSON `biome.json` with a parsing error.

- [#&#8203;10535](biomejs/biome#10535) [`c245f9d`](biomejs/biome@c245f9d) Thanks [@&#8203;Mokto](https://github.com/Mokto)! - Fixed a false positive in [`noUnusedVariables`](https://biomejs.dev/linter/rules/no-unused-variables/) for Svelte files where variables referenced inside `{@&#8203;html expr}` blocks were incorrectly reported as unused.

- [#&#8203;10668](biomejs/biome#10668) [`a0f197e`](biomejs/biome@a0f197e) Thanks [@&#8203;Netail](https://github.com/Netail)! - The `biome init` command has been updated to include a more up-to-date URL to [the first-party extensions page](https://biomejs.dev/editors/first-party-extensions/).

- [#&#8203;10667](biomejs/biome#10667) [`d8c3e87`](biomejs/biome@d8c3e87) Thanks [@&#8203;Netail](https://github.com/Netail)! - Fixed [#&#8203;10664](biomejs/biome#10664): [useErrorCause](https://biomejs.dev/linter/rules/use-error-cause/) now correctly detects a shorthand property.

- [#&#8203;10696](biomejs/biome#10696) [`ef2373f`](biomejs/biome@ef2373f) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;9566](biomejs/biome#9566). Improved how the Biome Language Server loads multiple configuration files inside a workspace.

- [#&#8203;10705](biomejs/biome#10705) [`4ccb410`](biomejs/biome@4ccb410) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10652](biomejs/biome#10652). Biome plugins are now properly filtered when using `--only` and `--skip` flags.

- [#&#8203;10669](biomejs/biome#10669) [`aa0a6eb`](biomejs/biome@aa0a6eb) Thanks [@&#8203;Netail](https://github.com/Netail)! - Fixed [#&#8203;10651](biomejs/biome#10651): [useInlineScriptId](https://biomejs.dev/linter/rules/use-inline-script-id/) now correctly trims trivia to detect if an id attribute has been set.

- [#&#8203;10689](biomejs/biome#10689) [`844b1be`](biomejs/biome@844b1be) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10658](biomejs/biome#10658). The issue was caused by the "Go-to definition" editor feature, which was enabled by default. The feature is now **disabled by default**. To work, the feature triggers the scanner to build the module graph. This caused memory leak issues in cases where Biome starts in the home directory to modify files.

  If you relied on this new feature, you must now turn on using the \[editor settings] of the extension e.g. [Zed](https://biomejs.dev/reference/zed/#goto_definition) and [VSCode](https://biomejs.dev/reference/vscode/#biomegotodefinition).

- [#&#8203;10695](biomejs/biome#10695) [`043fbb5`](biomejs/biome@043fbb5) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10674](biomejs/biome#10674). Biome now throws an error when the field `level` is missing from a rule option.

- [#&#8203;10712](biomejs/biome#10712) [`5941df2`](biomejs/biome@5941df2) Thanks [@&#8203;Conaclos](https://github.com/Conaclos)! - Improved the diagnostic and the documentation of [`useFlatMap`](https://biomejs.dev/linter/rules/use-flat-map/).

- [#&#8203;10615](biomejs/biome#10615) [`23814f1`](biomejs/biome@23814f1) Thanks [@&#8203;qwertycxz](https://github.com/qwertycxz)! - Improved the DX the JSON schema when it's used by certain code editors like VSCode.

- [#&#8203;10688](biomejs/biome#10688) [`ec69489`](biomejs/biome@ec69489) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed a bug where the Biome Daemon did not correctly shut down when the editor was closed during an in-progress operation, especially while scanning.

- [#&#8203;10701](biomejs/biome#10701) [`6c2e0d7`](biomejs/biome@6c2e0d7) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10694](biomejs/biome#10694). The Biome Language Server no longer prints an error when the user hovers a variable imported from node\_modules.

- [#&#8203;10681](biomejs/biome#10681) [`888515b`](biomejs/biome@888515b) Thanks [@&#8203;Conaclos](https://github.com/Conaclos)! - Fixed [`useExportType`](https://biomejs.dev/linter/rules/use-export-type/) that reported useless details in some diagnostics.

- [#&#8203;10220](biomejs/biome#10220) [`3694a13`](biomejs/biome@3694a13) Thanks [@&#8203;theBGuy](https://github.com/theBGuy)! - Fixed [`useAnchorContent`](https://biomejs.dev/linter/rules/use-anchor-content/) false positive for `<a>` elements used as render prop values (e.g. `render={<a href="..." />}`), a pattern where the receiving component renders its children inside the anchor element.

- [#&#8203;10702](biomejs/biome#10702) [`98823fb`](biomejs/biome@98823fb) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10612](biomejs/biome#10612). The Biome parser now correctly parses processing instructions. The following SVG doesn't throw errors anymore:

  ```svg
  <?xml version="1.0" encoding="UTF-8" ?>

  <svg></svg>
  ```

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMzQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjIzNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.oirnoir.dev/OIRNOIR/YouTube-Helper-Server/pulls/21
OIRNOIR pushed a commit to OIRNOIR/YouTube-Helper-Client that referenced this pull request Jun 30, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev) ([source](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | imports | patch | [`2.5.0` -> `2.5.1`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.5.0/2.5.1) |

---

### Release Notes

<details>
<summary>biomejs/biome (@&#8203;biomejs/biome)</summary>

### [`v2.5.1`](https://github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#251)

[Compare Source](https://github.com/biomejs/biome/compare/@biomejs/biome@2.5.0...@biomejs/biome@2.5.1)

##### Patch Changes

- [#&#8203;10722](biomejs/biome#10722) [`f8a303d`](biomejs/biome@f8a303d) Thanks [@&#8203;denbezrukov](https://github.com/denbezrukov)! - Fixed CSS formatter output for comments between import media queries.

  ```diff
  -@&#8203;import url("print.css") print,
  -/* comment */
  -screen;
  +@&#8203;import url("print.css") print, /* comment */ screen;
  ```

- [#&#8203;10738](biomejs/biome#10738) [`9fdc560`](biomejs/biome@9fdc560) Thanks [@&#8203;JamBalaya56562](https://github.com/JamBalaya56562)! - Fixed [#&#8203;9899](biomejs/biome#9899): the `json` and `json-pretty` reporters now escape backslashes in a diagnostic's `location.path`. Previously, paths containing backslashes (such as Windows-style paths) were emitted unescaped, producing invalid JSON.

  ```diff
  -    "path": "src\account\setup-passkey.tsx",
  +    "path": "src\\account\\setup-passkey.tsx",
  ```

- [#&#8203;10626](biomejs/biome#10626) [`5f837df`](biomejs/biome@5f837df) Thanks [@&#8203;tom-groves](https://github.com/tom-groves)! - Fixed [#&#8203;10625](biomejs/biome#10625): `biome migrate` no longer emits an invalid trailing comma when a renamed rule (such as `noConsoleLog` → `noConsole`) is the last member of its rule group. Previously this produced malformed output that aborted the migration of a strict-JSON `biome.json` with a parsing error.

- [#&#8203;10535](biomejs/biome#10535) [`c245f9d`](biomejs/biome@c245f9d) Thanks [@&#8203;Mokto](https://github.com/Mokto)! - Fixed a false positive in [`noUnusedVariables`](https://biomejs.dev/linter/rules/no-unused-variables/) for Svelte files where variables referenced inside `{@&#8203;html expr}` blocks were incorrectly reported as unused.

- [#&#8203;10668](biomejs/biome#10668) [`a0f197e`](biomejs/biome@a0f197e) Thanks [@&#8203;Netail](https://github.com/Netail)! - The `biome init` command has been updated to include a more up-to-date URL to [the first-party extensions page](https://biomejs.dev/editors/first-party-extensions/).

- [#&#8203;10667](biomejs/biome#10667) [`d8c3e87`](biomejs/biome@d8c3e87) Thanks [@&#8203;Netail](https://github.com/Netail)! - Fixed [#&#8203;10664](biomejs/biome#10664): [useErrorCause](https://biomejs.dev/linter/rules/use-error-cause/) now correctly detects a shorthand property.

- [#&#8203;10696](biomejs/biome#10696) [`ef2373f`](biomejs/biome@ef2373f) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;9566](biomejs/biome#9566). Improved how the Biome Language Server loads multiple configuration files inside a workspace.

- [#&#8203;10705](biomejs/biome#10705) [`4ccb410`](biomejs/biome@4ccb410) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10652](biomejs/biome#10652). Biome plugins are now properly filtered when using `--only` and `--skip` flags.

- [#&#8203;10669](biomejs/biome#10669) [`aa0a6eb`](biomejs/biome@aa0a6eb) Thanks [@&#8203;Netail](https://github.com/Netail)! - Fixed [#&#8203;10651](biomejs/biome#10651): [useInlineScriptId](https://biomejs.dev/linter/rules/use-inline-script-id/) now correctly trims trivia to detect if an id attribute has been set.

- [#&#8203;10689](biomejs/biome#10689) [`844b1be`](biomejs/biome@844b1be) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10658](biomejs/biome#10658). The issue was caused by the "Go-to definition" editor feature, which was enabled by default. The feature is now **disabled by default**. To work, the feature triggers the scanner to build the module graph. This caused memory leak issues in cases where Biome starts in the home directory to modify files.

  If you relied on this new feature, you must now turn on using the \[editor settings] of the extension e.g. [Zed](https://biomejs.dev/reference/zed/#goto_definition) and [VSCode](https://biomejs.dev/reference/vscode/#biomegotodefinition).

- [#&#8203;10695](biomejs/biome#10695) [`043fbb5`](biomejs/biome@043fbb5) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10674](biomejs/biome#10674). Biome now throws an error when the field `level` is missing from a rule option.

- [#&#8203;10712](biomejs/biome#10712) [`5941df2`](biomejs/biome@5941df2) Thanks [@&#8203;Conaclos](https://github.com/Conaclos)! - Improved the diagnostic and the documentation of [`useFlatMap`](https://biomejs.dev/linter/rules/use-flat-map/).

- [#&#8203;10615](biomejs/biome#10615) [`23814f1`](biomejs/biome@23814f1) Thanks [@&#8203;qwertycxz](https://github.com/qwertycxz)! - Improved the DX the JSON schema when it's used by certain code editors like VSCode.

- [#&#8203;10688](biomejs/biome#10688) [`ec69489`](biomejs/biome@ec69489) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed a bug where the Biome Daemon did not correctly shut down when the editor was closed during an in-progress operation, especially while scanning.

- [#&#8203;10701](biomejs/biome#10701) [`6c2e0d7`](biomejs/biome@6c2e0d7) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10694](biomejs/biome#10694). The Biome Language Server no longer prints an error when the user hovers a variable imported from node\_modules.

- [#&#8203;10681](biomejs/biome#10681) [`888515b`](biomejs/biome@888515b) Thanks [@&#8203;Conaclos](https://github.com/Conaclos)! - Fixed [`useExportType`](https://biomejs.dev/linter/rules/use-export-type/) that reported useless details in some diagnostics.

- [#&#8203;10220](biomejs/biome#10220) [`3694a13`](biomejs/biome@3694a13) Thanks [@&#8203;theBGuy](https://github.com/theBGuy)! - Fixed [`useAnchorContent`](https://biomejs.dev/linter/rules/use-anchor-content/) false positive for `<a>` elements used as render prop values (e.g. `render={<a href="..." />}`), a pattern where the receiving component renders its children inside the anchor element.

- [#&#8203;10702](biomejs/biome#10702) [`98823fb`](biomejs/biome@98823fb) Thanks [@&#8203;ematipico](https://github.com/ematipico)! - Fixed [#&#8203;10612](biomejs/biome#10612). The Biome parser now correctly parses processing instructions. The following SVG doesn't throw errors anymore:

  ```svg
  <?xml version="1.0" encoding="UTF-8" ?>

  <svg></svg>
  ```

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMzQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjIzNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.oirnoir.dev/OIRNOIR/YouTube-Helper-Client/pulls/8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Formatter Area: formatter L-CSS Language: CSS and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant