chore(deps): update dependency @biomejs/biome to v2.2.3 #1077
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.2.2
->2.2.3
2.2.2
->2.2.3
Release Notes
biomejs/biome (@biomejs/biome)
v2.2.3
Compare Source
Patch Changes
#7353
4d2b719
Thanks @JeetuSuthar! - Fixed #7340: The linter now allows thenavigation
property for view-transition in CSS.Previously, the linter incorrectly flagged
navigation: auto
as an unknown property. This fix addsnavigation
to the list of known CSS properties, following the CSS View Transitions spec.#7275
560de1b
Thanks @arendjr! - Fixed #7268: Files that are explicitly passed as CLI arguments are now correctly ignored if they reside in an ignored folder.#7358
963a246
Thanks @ematipico! - Fixed #7085, now the rulenoDescendingSpecificity
correctly calculates the specificity of selectors when they are included inside a media query.#7387
923674d
Thanks @qraqras! - Fixed #7381, now theuseOptionalChain
rule recognizes optional chaining using Yoda expressions (e.g.,undefined !== foo && foo.bar
).#7316
f9636d5
Thanks @Conaclos! - Fixed #7289. The ruleuseImportType
now inlinesimport type
intoimport { type }
when thestyle
option is set toinlineType
.Example:
#7350
bb4d407
Thanks @siketyan! - Fixed #7261: two characters・
(KATAKANA MIDDLE DOT, U+30FB) and・
(HALFWIDTH KATAKANA MIDDLE DOT, U+FF65) are no longer considered as valid characters in identifiers. Property keys containing these character(s) are now preserved as string literals.#7377
811f47b
Thanks @ematipico! - Fixed a bug where the Biome Language Server didn't correctly compute the diagnostics of a monorepo setting, caused by an incorrect handling of the project status.#7245
fad34b9
Thanks @kedevked! - Added the new lint ruleuseConsistentArrowReturn
.This rule enforces a consistent return style for arrow functions.
Invalid
This rule is a port of ESLint's arrow-body-style rule.
#7370
e8032dd
Thanks @fireairforce! - Support dynamicimport defer
andimport source
. The syntax looks like:#7369
b1f8cbd
Thanks @siketyan! - Range suppressions are now supported for Grit plugins.For JavaScript, you can suppress a plugin as follows:
For CSS, you can suppress a plugin as follows:
#7384
099507e
Thanks @ematipico! - Reduced the severity of certain diagnostics emitted when Biome deserializes the configuration files.Now these diagnostics are emitted as
Information
severity, which means that they won't interfere when running commands with--error-on-warnings
#7302
2af2380
Thanks @unvalley! - Fixed #7301:useReadonlyClassProperties
now correctly skips JavaScript files.#7288
94d85f8
Thanks @ThiefMaster! - Fixed #7286. Files are now formatted with JSX behavior whenjavascript.parser.jsxEverywhere
is explicitly set.Previously, this flag was only used for parsing, but not for formatting, which resulted in incorrect formatting of conditional expressions when JSX syntax is used in
.js
files.#7311
62154b9
Thanks @qraqras! - Added the new nursery rulenoUselessCatchBinding
. This rule disallows unnecessary catch bindings.#7349
45c1dfe
Thanks @ematipico! - Fixed #4298. Biome now correctly formats CSS declarations when it contains one single value:#7295
7638e84
Thanks @ematipico! - Fixed #7130. Removed the emission of a false-positive diagnostic. Biome no longer emits the following diagnostic:#7377
811f47b
Thanks @ematipico! - Fixed #7371 where the Biome Language Server didn't correctly recompute the diagnostics when updating a nested configuration file.#7348
ac27fc5
Thanks @ematipico! - Fixed #7079. Now the ruleuseSemanticElements
doesn't trigger components and custom elements.#7389
ab06a7e
Thanks @Conaclos! - Fixed #7344.useNamingConvention
no longer reports interfaces defined in global declarations.Interfaces declared in global declarations augment existing interfaces.
Thus, they must be ignored.
In the following example,
useNamingConvention
reportedHTMLElement
.It is now ignored.
#7315
4a2bd2f
Thanks @vladimir-ivanov! - Fixed #7310:useReadonlyClassProperties
correctly handles nested assignments, avoiding false positives when a class property is assigned within another assignment expression.Example of code that previously triggered a false positive but is now correctly ignored:
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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.