This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
chore(deps): update dependency @biomejs/biome to v1.2.0 #240
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.1.2
->1.2.0
Release Notes
biomejs/biome (@biomejs/biome)
v1.2.0
Compare Source
CLI
New features
--json-formatter-enabled
--json-formatter-indent-style
--json-formatter-indent-size
--json-formatter-line-width
--javascript-formatter-enabled
--javascript-formatter-indent-style
--javascript-formatter-indent-size
--javascript-formatter-line-width
Bug fixes
--errors-on-warning
didn't work when runningbiome ci
command.Configuration
New features
json.formatter.enabled
json.formatter.indentStyle
json.formatter.indentSize
json.formatter.lineWidth
javascript.formatter.enabled
javascript.formatter.indentStyle
javascript.formatter.indentSize
javascript.formatter.lineWidth
Linter
Promoted rules
New rules are incubated in the nursery group.
Once stable, we promote them to a stable group.
The following rules are promoted:
New rules
void
type. Contributed by @shulandmimiRemoved rules
Remove noConfusingArrow.
Code formatters, such as prettier and Biome, always adds parentheses around the parameter or the body of an arrow function.
This makes the rule useless.
Contributed by @Conaclos
Enhancements
noFallthroughSwitchClause now relies on control flow analysis to report most of switch clause fallthrough. Contributed by @Conaclos
noAssignInExpressions no longer suggest code fixes. Most of the time the suggestion didn't match users' expectations. Contributed by @Conaclos
noUselessConstructor no longer emits safe code fixes. Contributed by @Conaclos
All code fixes are now emitted as unsafe code fixes.
Removing a constructor can change the behavior of a program.
useCollapsedElseIf now only provides safe code fixes. Contributed by @Conaclos
noUnusedVariables now reports more cases.
The rule is now able to ignore self-writes.
For example, the rule reports the following unused variable:
The rule is also capable of detecting an unused declaration that uses itself.
For example, the rule reports the following unused interface:
Finally, the rule now ignores all TypeScript declaration files,
including global declaration files.
Contributed by @Conaclos
Bug fixes
Fix #182, making useLiteralKeys retains optional chaining. Contributed by @denbezrukov
Fix #168, fix useExhaustiveDependencies false positive case when stable hook is on a new line. Contributed by @denbezrukov
Fix #137, fix noRedeclare false positive case with TypeScript module declaration:
Contributed by @denbezrukov
Fix #258, fix noUselessFragments the case where the rule removing an assignment. Contributed by @denbezrukov
Fix #266, where
complexity/useLiteralKeys
emitted a code action with an invalid AST. Contributed by @ematipicoFix #105, removing false positives reported by noUnusedVariables.
The rule no longer reports the following used variable:
Contributed by @Conaclos
VSCode
Enhancements
Improve server binary resolution when using certain package managers, notably pnpm.
The new strategy is to point to
node_modules/.bin/biome
path,which is consistent for all package managers.
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 has been generated by Mend Renovate. View repository job log here.