fix(deps): update all non-major dependencies #4
+375
−537
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.1.4->^2.3.6^1.54.2->^1.56.1^1.4.15->^1.6.6^0.12.0->^0.18.0^22.17.1->^22.19.11.11.0->1.13.210.2.3->10.3.122.18.0->22.21.1^1.54.2->^1.56.110.14.0->10.22.0^5.9.2->^5.9.3Release Notes
biomejs/biome (@biomejs/biome)
v2.3.6Compare Source
Patch Changes
#8100
82b9a8eThanks @Netail! - Added the nursery ruleuseFind. Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.Invalid:
#8118
dbc7021Thanks @hirokiokada77! - Fixed #8117:useValidLangnow accepts valid BCP 47 language tags with script subtags.Valid:
#7672
f1d5725Thanks @Netail! - Added the nursery ruleuseConsistentGraphqlDescriptions, requiring all descriptions to follow the same style (either block or inline) inside GraphQL files.Invalid:
Valid:
#8026
f102661Thanks @matanshavit! - Fixed #8004:noParametersOnlyUsedInRecursionnow correctly detects recursion by comparing function bindings instead of just names.Previously, the rule incorrectly flagged parameters when a method had the same name as an outer function but called the outer function (not itself):
Biome now properly distinguishes between these cases and will not report false positives.
#8097
5fc5416Thanks @dyc3! - Added the nursery rulenoVueVIfWithVFor. This rule disallowsv-forandv-ifon the same element.#8085
7983940Thanks @Netail! - Added the nursery rulenoForIn. Disallow iterating using a for-in loop.Invalid:
#8086
2b41e82Thanks @matanshavit! - Fixed #8045: ThenoNestedTernaryrule now correctly detects nested ternary expressions even when they are wrapped in parentheses (e.g.foo ? (bar ? 1 : 2) : 3).Previously, the rule would not flag nested ternaries like
foo ? (bar ? 1 : 2) : 3because the parentheses prevented detection. The rule now looks through parentheses to identify nested conditionals.Previously not detected (now flagged):
Still valid (non-nested with parentheses):
#8075
e403868Thanks @YTomm! - Fixed #7948: TheuseReadonlyClassPropertiescode fix whencheckAllPropertiesis enabled will no longer insert a newline afterreadonlyand the class property.#8102
47d940eThanks @lucasweng! - Fixed #8027.useReactFunctionComponentsno longer reports class components that implementcomponentDidCatchusing class expressions.The rule now correctly recognizes error boundaries defined as class expressions:
#8097
5fc5416Thanks @dyc3! - Added the nursery ruleuseVueHyphenatedAttributes, which encourages using kebab case for attribute names, per the Vue style guide's recommendations.#8108
0f0a658Thanks @Netail! - Added the nursery rulenoSyncScripts. Prevent the usage of synchronous scripts.Invalid:
Valid:
#8098
1fdcaf0Thanks @Jayllyz! - Added documentation URLs to rule descriptions in the JSON schema.#8097
5fc5416Thanks @dyc3! - Fixed an issue with the HTML parser where it would treat Vue directives with dynamic arguments as static arguments instead.#7684
f4433b3Thanks @vladimir-ivanov! - ChangednoUnusedPrivateClassMembersto align more fully with meaningful reads.This rule now distinguishes more carefully between writes and reads of private class members.
this.#x += 1both reads and writes#x, so it counts as usage.this.#x = 1with no getter) are no longer treated as usage.This change ensures that private members are only considered “used” when they are actually read in a way that influences execution.
Invalid examples (previously valid)
Valid example (Previously invalid)
#7684
f4433b3Thanks @vladimir-ivanov! - Improved detection of used private class membersThe analysis for private class members has been improved: now the tool only considers a private member “used” if it is actually referenced in the code.
This makes reports about unused private members more accurate and helps you clean up truly unused code.
Example (previously valid)
#7681
b406db6Thanks @kedevked! - Added the new lint rule,useSpread, ported from the ESLint ruleprefer-spread.This rule enforces the use of the spread syntax (
...) overFunction.prototype.apply()when calling variadic functions, as spread syntax is generally more concise and idiomatic in modern JavaScript (ES2015+).The rule provides a safe fix.
Invalid
Valid
#7287
aa55c8dThanks @ToBinio! - Fixed #7205: ThenoDuplicateTestHooksrule now treats chained describe variants (e.g., describe.each/for/todo) as proper describe scopes, eliminating false positives.The following code will no longer be a false positive:
#8013
0c0edd4Thanks @Jayllyz! - Added the GraphQL nursery ruleuseUniqueGraphqlOperationName. This rule ensures that all GraphQL operations within a document have unique names.Invalid:
Valid:
#8084
c2983f9Thanks @dyc3! - Fixed #8080: The HTML parser, when parsing Vue, can now properly handle Vue directives with no argument, modifiers, or initializer (e.g.v-else). It will no longer treat subsequent valid attributes as bogus.#8104
041196bThanks @Conaclos! - FixednoInvalidUseBeforeDeclaration.The rule no longer reports a use of an ambient variable before its declarations.
The rule also completely ignores TypeScript declaration files.
The following code is no longer reported as invalid:
#8060
ba7b076Thanks @dyc3! - Added the nursery ruleuseVueValidVBind, which enforces the validity ofv-binddirectives in Vue files.Invalid
v-bindusages include:#8113
fb8e3e7Thanks @Conaclos! - FixednoInvalidUseBeforeDeclaration.The rule now reports invalid use of classes, enums, and TypeScript's import-equals before their declarations.
The following code is now reported as invalid:
#8077
0170dcbThanks @dyc3! - Added the ruleuseVueValidVElseIfto enforce validv-else-ifdirectives in Vue templates. This rule reports invalidv-else-ifdirectives with missing conditional expressions or when not preceded by av-iforv-else-ifdirective.#8077
0170dcbThanks @dyc3! - Added the ruleuseVueValidVElseto enforce validv-elsedirectives in Vue templates. This rule reportsv-elsedirectives that are not preceded by av-iforv-else-ifdirective.#8077
0170dcbThanks @dyc3! - Added the ruleuseVueValidVHtmlto enforce valid usage of thev-htmldirective in Vue templates. This rule reportsv-htmldirectives with missing expressions, unexpected arguments, or unexpected modifiers.#8077
0170dcbThanks @dyc3! - Added the ruleuseVueValidVIfto enforce validv-ifdirectives in Vue templates. It disallows arguments and modifiers, and ensures a value is provided.#8077
0170dcbThanks @dyc3! - Added the ruleuseVueValidVOnto enforce validv-ondirectives in Vue templates. This rule reports invalidv-on/ shorthand@directives with missing event names, invalid modifiers, or missing handler expressions.v2.3.5Compare Source
Patch Changes
#8023
96f3e77Thanks @ematipico! - Added support Svelte syntax{@​html}. Biome now is able to parse and format the Svelte syntax{@​html}:The contents of the expressions inside the
{@​html <expression>}aren't formatted yet.#8058
5f68bccThanks @ematipico! - Fixed a bug where the Biome Language Server would enable its project file watcher even when no project rules were enabled.Now the watching of nested configuration files and nested ignore files is delegated to the editor, if their LSP spec supports it.
#8023
96f3e77Thanks @ematipico! - Added support Svelte syntax{@​render}. Biome now is able to parse and format the Svelte syntax{@​render}:The contents of the expressions inside the
{@​render <expression>}aren't formatted yet.#8006
f0612a5Thanks @Bertie690! - Updated documentation and diagnostic forlint/complexity/noBannedTypes. The rule should have a more detailed description and diagnostic error message.#8039
da70d8bThanks @PFiS1737! - Biome now keeps a blank line after the frontmatter section in Astro files.#8042
b7efa6fThanks @dyc3! - The CSS Parser, withtailwindDirectivesenabled, will now accept at rules like@mediaand@supportsin@custom-variantshorthand syntax.#8064
3ff9d45Thanks @dibashthapa! - Fixed #7967: Fixed the issue with support for advanced SVG props#8023
96f3e77Thanks @ematipico! - Added support Svelte syntax{@​attach}. Biome now is able to parse and format the Svelte syntax{@​attach}:The contents of the expressions inside the
{@​attach <expression>}aren't formatted yet.#8001
6e8a50eThanks @ematipico! - Added support Svelte syntax{#key}. Biome now is able to parse and format the Svelte syntax{#key}:The contents of the expressions inside the
{#key <expression>}aren't formatted yet.#8023
96f3e77Thanks @ematipico! - Added support Svelte syntax{@​const}. Biome now is able to parse and format the Svelte syntax{@​const}:The contents of the expressions inside the
{@​const <expression>}aren't formatted yet.#8044
8f77d4aThanks @Netail! - Corrected rule source references.biome migrate eslintshould do a bit better detecting rules in your eslint configurations.#8065
1a2d1afThanks @Netail! - Added the nursery ruleuseArraySortCompare. Require Array#sort and Array#toSorted calls to always provide a compareFunction.Invalid:
Valid:
#7673
a3a713dThanks @dyc3! - The HTML parser is now able to parse vue directives. This enables us to write/port Vue lint rules that require inspecting the<template>section. However, this more complex parsing may result in parsing errors where there was none before. For those of you that have opted in to the experimental support (akaexperimentalFullSupportEnabled), we greatly appreciate your help testing this out, and your bug reports.#8031
fa6798aThanks @ematipico! - Added support for the Svelte syntax{#if}{/if}. The Biome HTML parser is now able to parse and format the{#if}{/if} blocks:<!-- if / else-if / else --> {#if porridge.temperature > 100} -<p>too hot!</p> + <p>too hot!</p> {:else if 80 > porridge.temperature} -<p>too cold!</p> + <p>too cold!</p> {:else if 100 > porridge.temperature} -<p>too too cold!</p> + <p>too too cold!</p> {:else} -<p>just right!</p> + <p>just right!</p> {/if}#8041
beeb7bbThanks @dyc3! - The CSS parser, withtailwindDirectivesenabled, will now accept lists of selectors in@custom-variantshorthand syntax.#8028
c09e45cThanks @fmajestic! - The GitLab reporter now outputs format errors.#8037
78011b1Thanks @PFiS1737! -indentScriptAndStyleno longer indents the frontmatter in Astro files.#8009
6374b1fThanks @tmcw! - Fixed an edge case in theuseArrowFunctionrule.The rule no longer emits diagnostics for or offers to fix functions that reference
the arguments object,
because that object is undefined for arrow functions.
Valid example:
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.v2.3.2Compare Source
Patch Changes
#7859
c600618Thanks @Netail! - Added the nursery rulenoIncrementDecrement, disallows the usage of the unary operators ++ and --.#7901
0d17b05Thanks @ematipico! - Fixed #7837, where Biome couldn't properly parse text expressions that contained nested curly brackets. This was breaking parsing in Astro and Svelte files.#7874
e617d36Thanks @Bertie690! - Fixed #7230:noUselessStringConcatno longer emits false positives for multi-line strings with leading+operators.Previously, the rule did not check for leading newlines on the
+operator, emitting false positives if one occurred at the start of a line.Notably, formatting with
operatorLinebreak="before"would move the+operators to the start of lines automatically, resulting in spurious errors whenever a multi-line string was used.Now, the rule correctly detects and ignores multi-line concatenations with leading operators as well, working regardless of the setting of
operatorLinebreak.Example
#7786
33ffcd5Thanks @daivinhtran! - Fixed #7601: Properly match Grit plugin's code snippet with only one child.#7901
0d17b05Thanks @ematipico! - Fixed #7837, where Biome Language Server panicked when opening HTML-ish files when the experimental full support is enabled.v2.3.1Compare Source
Patch Changes
#7840
72afdfaThanks @ematipico! - Fixed #7838, which caused the new--css-parse-*arguments not being recognised by thecicommand.#7789
d5b416eThanks @fronterior! - Fixed the LSP methodworkspace/didChangeWorkspaceFoldersto perform incremental updates instead of replacing the entire folder list.#7852
bd254c7Thanks @dyc3! - Fixed #7843: The CSS parser, whentailwindDirectivesis enabled, correctly parses--*: initial;.#7872
0fe13feThanks @dyc3! - Fixed #7861: The HTML parser will now accept Svelte attribute shorthand syntax in.sveltefiles.#7866
7b2600bThanks @dyc3! - Fixed #7860: The css parser, withtailwindDirectivesenabled, will now accept@pluginoptions.#7853
fe90c78Thanks @dyc3! - Fixed #7848: The css parser withtailwindDirectivesenabled will now correctly parse tailwind's source exclude syntax:@source not "foo.css";#7878
c9f7fe5Thanks @ematipico! - Fixed #7857: Biome now parses<script>tags as TypeScript when analysing.astrofiles.#7867
b42b718Thanks @smorimoto! - Fixed incorrect option name in HTML parser error message.The error message for disabled text expressions incorrectly referred
to the
html.parser.textExpressionoption, which does not exist.Updated it to reference the correct
html.parser.interpolationoption.v2.3.0Compare Source
Minor Changes
a3e3369Thanks @arendjr! - Biome's resolver now supportsbaseUrlif specified intsconfig.json.Example
Given the following file structure:
tsconfig.json{ "compilerOptions": { "baseUrl": "./src" } }src/foo.tsIn this scenario,
import { foo } from "foo";should work regardless of thelocation of the file containing the
importstatement.Fixes #6432.
#7745
6fcbc07Thanks @dyc3! - Addedignoreoption tonoUnknownAtRules. If an unknown at-rule matches any of the items provided inignore, a diagnostic won't be emitted.#7753
63cb7ffThanks @ematipico! - Enhanced theinitcommand. Theinitcommand now checks if the existing project contains known ignore files and known generated folders.If Biome finds
.gitignoreor.ignorefiles, it will add the following configuration tobiome.json:{ + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + } }If Biome finds a
dist/folder, it will exclude it automatically using the double-exclude syntax:{ + "files": { + "includes": ["**", "!!**/dist"] + } }#7548
85d3a3aThanks @siketyan! - The rules in a domain are no longer enabled automatically by the installed dependencies unless the rule is recommended.#7723
d3aac63Thanks @ematipico! - Added--css-parse-css-modulesCLI flag to control whether CSS Modules syntax is enabled.You can now enable or disable CSS Modules parsing directly from the command line:
#7723
d3aac63Thanks @ematipico! - Added--css-parse-tailwind-directivesCLI flag to control whether Tailwind CSS 4.0 directives and functions are enabled.You can now enable or disable Tailwind CSS 4.0 directive parsing directly from the command line:
#7330
272632fThanks @ematipico! - Updated the formatting of.svelteand.vuefiles. Now the indentation of the JavaScript blocks matches Prettier's:#7333
de0d2d6Thanks @dyc3! - Implemented theindentScriptAndStyleoption for vue and svelte files, with the default set tofalseto match Prettier'svueIndentScriptAndStyleoption. When enabled, this option indents the content within<script>and<style>tags to align with the surrounding HTML structure.It can be enabled with this configuration:
{ "html": { "formatter": { "indentScriptAndStyle": true } } }Which will format this code to:
#7359
ebbddc4Thanks @arendjr! - Deprecated the optionfiles.experimentalScannerIgnoresin favour of force-ignore syntax infiles.includes.files.includessupports ignoring files by prefixing globs with an exclamation mark (!). With this change, it also supports force-ignoring globs by prefixing them with a double exclamation mark (!!).The effect of force-ignoring is that the scanner will not index files matching the glob, even in project mode, even if those files are imported by other files, and even if they are files that receive special treatment by Biome, such as nested
biome.jsonfiles.Example
Let's take the following configuration:
{ "files": { "includes": [ "**", "!**/generated", "!!**/dist", "fixtures/example/dist/*.js" ] }, "linter": { "domains": { "project": "all" } } }This configuration achieves the following:
generatedfolder are not processed by the linter, but they will get indexed if a file outside ageneratedfolder imports them.distfolder are never indexed nor processed, not even if they are imported for any purpose, except:distfolder is insidefixtures/example/, its.jsfiles do get both indexed and processed.In general, we now recommend using the force-ignore syntax for any folders that contain output files, such as
build/anddist/. For such folders, it is highly unlikely that indexing has any useful benefits. For folders containing generated files, you may wish to use the regular ignore syntax so that type information can still be extracted from the files.experimentalScannerIgnoreswill continue to work for now, but you'll see a deprecation warning if you still use it.Run the
biome migrate --writecommand to automatically update the configuration file.3b6f5e3](https://reConfiguration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.