chore(deps): update dependency @biomejs/biome to v1.5.2 #13
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:
1.5.1
->1.5.2
Release Notes
biomejs/biome (@biomejs/biome)
v1.5.2
Compare Source
CLI
Bug fixes
Fix #1512 by skipping verbose diagnostics from the count. Contributed by @ematipico
Correctly handle cascading
include
andignore
.Previously Biome incorrectly included files that were included at tool level and ignored at global level.
In the following example,
file.js' was formatted when it should have been ignored. Now, Biome correctly ignores the directory
./src/sub/`.Contributed by @Conaclos
Don't emit verbose warnings when a protected file is ignored.
Some files, such as
package.json
andtsconfig.json
, are protected.Biome emits a verbose warning when it encounters a protected file.
Previously, Biome emitted this verbose warning even if the file was ignored by the configuration.
Now, it doesn't emit verbose warnings for protected files that are ignored.
Contributed by @Conaclos
overrides
no longer affect which files are ignored. Contributed by @ConaclosThe file
biome.json
can't be ignored anymore. Contributed by @ematipicoFix #1541 where the content of protected files wasn't returned to
stdout
. Contributed by @ematipicoDon't handle CSS files, the formatter isn't ready yet. Contributed by @ematipico
Configuration
Bug fixes
Fix 1440, a case where
extends
andoverrides
weren't correctly emitting the final configuration. Contributed by @arendjrCorrectly handle
include
whenignore
is set (#1468). Contributed by @ConaclosPreviously, Biome ignored
include
ifignore
was set.Now, Biome check both
include
andignore
.A file is processed if it is included and not ignored.
If
include
is not set all files are considered included.Formatter
Bug fixes
Fix placement of comments before
*
token in generator methods with decorators. #1537 Contributed by @ah-yuFix #1406. Ensure comments before the
async
keyword are placed before it. Contributed by @ah-yuFix #1172. Fix placement of line comment after function expression parentheses, they are now attached to first statement in body. Contributed by @kalleep
Fix #1511 that made the JavaScript formatter crash. Contributed @Conaclos
Linter
Enhancements
Add an unsafe code fix for noConsoleLog. Contributed by @vasucp1207
useArrowFunction no longer reports function in
extends
clauses or in anew
expression. Contributed by @ConaclosThis cases requires the presence of a prototype.
Bug fixes
The fix of useArrowFunction now adds parentheses around the arrow function in more cases where it is needed (#1524).
A function expression doesn't need parentheses in most expressions where it can appear.
This is not the case with the arrow function.
We previously added parentheses when the function appears in a call or member expression.
We now add parentheses in binary-like expressions and other cases where they are needed, hopefully covering all cases.
Previously:
Now:
Contributed by @Conaclos
Fix #1514. Fix autofix suggestion to avoid the syntax error in
no_useless_fragments
. Contributed by @togami2864Configuration
📅 Schedule: Branch creation - "before 4am" (UTC), Automerge - "before 4am" (UTC).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.