chore(deps): update dependency @biomejs/biome to v2.3.4 #410
+39
−39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.3.2->2.3.4Release Notes
biomejs/biome (@biomejs/biome)
v2.3.4Compare Source
Patch Changes
#7989
4855c4aThanks @alissonlauffer! - Fixed a regression in Astro frontmatter parsing where comments inside quoted strings were incorrectly detected as actual comments. This caused the parser to prematurely terminate frontmatter parsing when encountering strings likeconst test = "//";.For example, the following Astro frontmatter now parses correctly:
#7968
0b28f5fThanks @denbezrukov! - Refactored formatter to use strictTokenelement for better performance. The newTokenvariant is optimized for static, ASCII-only text (keywords, operators, punctuation) with the following constraints:\n,\r)\t)This enables faster printing and fitting logic by using bulk string operations (
push_str,len()) instead of character-by-character iteration with Unicode width calculations.#7941
19b8280Thanks @Conaclos! - Fixed #7943. Rules'optionsare now properly merged with the inheritedoptionsfrom a shared configuration.This means that you can now override a specific option from a rule without resetting the other options to their default.
Given the following shared configuration:
{ "linter": { "rules": { "style": { "useNamingConvention": { "level": "on", "options": { "strictCase": false, "conventions": [ { "selector": { "kind": "variable", "scope": "global" }, "formats": ["CONSTANT_CASE"] } ] } } } } } }And the user configuration that extends this shared configuration:
{ "extends": ["shared.json"], "linter": { "rules": { "style": { "useNamingConvention": { "level": "on", "options": { "strictCase": true } } } } } }The obtained merged configuration is now as follows:
{ "extends": ["shared.json"], "linter": { "rules": { "style": { "useNamingConvention": { "level": "on", "options": { "strictCase": true, "conventions": [ { "selector": { "kind": "variable", "scope": "global" }, "formats": ["CONSTANT_CASE"] } ] } } } } } }#7969
425963dThanks @ematipico! - Added support for the Svelte syntax{@​debug}. The Biome HTML parser is now able to parse and format the blocks:#7986
3256f82Thanks @lisiur! - Fixed #7981. Now Biome correctly detects and parseslang='tsx'andlang='jsx'languages when used inside in.vuefiles, when.experimentalFullSupportEnabledis enabled.#7921
547c2daThanks @dyc3! - Fixed #7854: The CSS parser, withtailwindDirectivesenabled, will now parse@source inline("underline");.#7856
c9e20c3Thanks @Netail! - Added the nursery rulenoContinue. Disallowing the usage of thecontinuestatement, structured control flow statements such asifshould be used instead.Invalid:
Valid:
v2.3.3Compare Source
Patch Changes
#7907
57bd662Thanks @ematipico! - Fixed #7839. Now the Biome parser correctly parses the Astro frontmatter even when a triple fence is inside quotes.#7934
a35c496Thanks @alissonlauffer! - Fixed #7919: The HTML parser now correctly handles Unicode BOM (Byte Order Mark) characters at the beginning of HTML files, ensuring proper parsing and tokenization.#7869
c80361dThanks @matanshavit! - Fixed #7864: Biome now preserves component tag name casing in Svelte, Astro, and Vue files.#7926
69cececThanks @matanshavit! - Added the rulenoParametersOnlyUsedInRecursion.This rule detects function parameters that are exclusively used in recursive calls and can be removed to simplify the function signature since they are effectively unused.
Fixes #6484.
#7774
2509b91Thanks @dibashthapa! - Fixed #7657: Added the new ruleno-unknown-propertyfrom ESLint#7918
7165d06Thanks @dyc3! - Fixed #7913: The CSS parser, withtailwindDirectivesenabled, will now correctly handle@slot.#7959
ffae203Thanks @siketyan! - Fixed the Biome Language Server so it no longer returns an internal error when the formatter is disabled in the configuration.Configuration
📅 Schedule: 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.
This PR was generated by Mend Renovate. View the repository job log.