chore(deps): update dependency @biomejs/biome to v2.0.6 #1881
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.0.5
->2.0.6
Release Notes
biomejs/biome (@biomejs/biome)
v2.0.6
Compare Source
Patch Changes
#6557
fd68458
Thanks @ematipico! - Fixed a bug where Biome didn't provide all the available code actions when requested by the editor.#6511
72623fa
Thanks @Conaclos! - Fixed #6492. TheorganizeImports
assist action no longer duplicates a comment at the start ofthe file when
:BLANK_LINE:
precedes the first import group.#6557
fd68458
Thanks @ematipico! - Fixed #6287 where Biome Language Server didn't adhere to thesettings.requireConfiguration
option when pulling diagnostics and code actions.Note that for this configuration be correctly applied, your editor must support dynamic registration capabilities.
#6551
0b63b1d
Thanks @Conaclos! - Fixed #6536.useSortedKeys
no longer panics in some edge cases where object spreads are involved.#6503
9a8fe0f
Thanks @ematipico! - Fixed #6482 where nursery rules that belonged to a domain were incorrectly enabled.#6565
e85761c
Thanks @daivinhtran! - Fixed #4677: Now thenoUnusedImports
rule won't produce diagnostics for types used in JSDoc comment of exports.#6166
b8cbd83
Thanks @mehm8128! - Added the nursery rule noExcessiveLinesPerFunction.This rule restrict a maximum number of lines of code in a function body.
The following code is now reported as invalid when the limit of maximum lines is set to 2:
The following code is now reported as valid when the limit of maximum lines is set to 3:
#6553
5f42630
Thanks @denbezrukov! - Fixed #6547. Now the Biome CSS parser correctly parses@starting-style
when it's used inside other at-rules. The following example doesn't raise an error anymore:#6458
05402e3
Thanks @ematipico! - Fixed an issue where the ruleuseSemanticElements
used the incorrect range when positioning suppression comments.#6560
6d8a6b9
Thanks @siketyan! - Fixed #6559: the error message on detected a large file was outdated and referred a removed configuration optionfiles.ignore
.#6458
05402e3
Thanks @ematipico! - Fixed #6384. The ruleuseAltText
now emits a diagnostic with a correct range, so suppression comments can work correctly.#6518
7a56288
Thanks @wojtekmaj! - Fixed #6508, where the rulenoUselessFragments
incorrectly flagged Fragments containing HTML entities as unnecessary.#6517
c5217cf
Thanks @arendjr! - Fixed #6515. When using theextends
field to extend a configuration from an NPM package, we now accept thecondition names
"biome"
and"default"
for exporting the configuration inthe
package.json
.This means that where previously your
package.json
had to contain an exportdeclaration similar to this:
You may now use one of these as well:
Or:
#6219
a3a3715
Thanks @huangtiandi1999! - Added new nursery rulenoUnassignedVariables
, which disallowslet
orvar
variables that are read but never assigned.The following code is now reported as invalid:
The following code is now reported as valid:
#6395
f62e748
Thanks @mdevils! - Added the new nursery rulenoImplicitCoercion
, which disallows shorthand type conversions in favor of explicit type conversion functions.Example (Invalid): Boolean conversion using double negation:
Example (Invalid): Number conversion using unary operators:
Example (Invalid): String conversion using concatenation:
Example (Invalid): Index checking using bitwise NOT:
Example (Valid): Using explicit type conversion functions:
#6544
f28b075
Thanks @daivinhtran! - Fixed #6536. Now the rulenoUselessFragments
produces diagnostics for a top-level useless fragment that is in a return statement.#6320
5705f1a
Thanks @mdevils! - Added the new nursery ruleuseUnifiedTypeSignature
, which disallows overload signatures that can be unified into a single signature.Overload signatures that can be merged into a single signature are redundant and should be avoided. This rule helps simplify function signatures by combining overloads by making parameters optional and/or using type unions.
Example (Invalid): Overload signatures that can be unified:
Example (Valid): Unified signatures:
Example (Valid): Different return types cannot be merged:
#6545
2782175
Thanks @ematipico! - Fixed #6529, where the Biome Language Server would emit an error when the user would open a file that isn't part of its workspace (node_modules
or external files).Now the language server doesn't emit any errors and it exits gracefully.
#6524
a27b825
Thanks @vladimir-ivanov! - Fixed #6500: TheuseReadonlyClassProperties
rule now correctly marks class properties asreadonly
when they are assigned in a constructor, setter or method,even if the assignment occurs inside an if or else block.
The following code is now correctly detected by the rule:
#6355
e128ea9
Thanks @anthonyshew! - Added a new nursery rulenoAlert
that disallows the use ofalert
,confirm
andprompt
.The following code is deemed incorrect:
#6548
37e9799
Thanks @ematipico! - Fixed #6459, where the Biome LSP was not taking into account the correct settings when applyingsource.fixAll.biome
code action.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.