chore(deps): update dependency @biomejs/biome to v1.3.0 #72
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.2.2
->1.3.0
Release Notes
biomejs/biome (@biomejs/biome)
v1.3.0
Compare Source
Analyzer
Enhancements
Import sorting is safe to apply now, and it will be applied when running
check --apply
instead ofcheck --apply-unsafe
.Import sorting now handles Bun imports
bun:<name>
, absolute path imports/<path>
, and Node's subpath imports#<name>
. See our documentation for more details. Contributed by @ConaclosCLI
Bug fixes
biome lint
now shows the correct options. Contributed by @ematipicobiome --version
now exits with status code0
instead of1
. Contributed by @nhedgerextends
functionality doesn't carry overorganizeImports.ignore
. Contributed by @ematipicostdin
and the original content doesn't change. Contributed by @ematipicoNew features
Add support for
BIOME_BINARY
environment variable to override the location of the binary. Contributed by @ematipicoAdd option
--indent-width
, and deprecated the option--indent-size
. Contributed by @ematipicoAdd option
--javascript-formatter-indent-width
, and deprecated the option--javascript-formatter-indent-size
. Contributed by @ematipicoAdd option
--json-formatter-indent-width
, and deprecated the option--json-formatter-indent-size
. Contributed by @ematipicoAdd option
--daemon-logs
tobiome rage
. The option is required to view Biome daemon server logs. Contributed by @unvalleyAdd support for logging. By default, Biome doesn't log anything other than diagnostics. Logging can be enabled with the new option
--log-level
:There are four different levels of logging, from the most verbose to the least verbose:
debug
,info
,warn
anderror
. Here's how anINFO
log will look like:You can customize how the log will look like with a new option
--log-kind
. The supported kinds are:pretty
,compact
andjson
.pretty
is the default logging. Here's how acompact
log will look like:Enhancements
ROME_BINARY
. UseBIOME_BINARY
instead. Contributed by @ematipico.git
folder when VCS support is enabled. Contributed by @ematipicobiome rage
doesn't print the logs of the daemon, usebiome rage --daemon-logs
to print them. Contributed by @unvalleyConfiguration
New features
Add option
formatter.indentWidth
, and deprecated the optionformatter.indentSize
. Contributed by @ematipicoAdd option
javascript.formatter.indentWidth
, and deprecated the optionjavascript.formatter.indentSize
. Contributed by @ematipicoAdd option
json.formatter.indentWidth
, and deprecated the optionjson.formatter.indentSize
. Contributed by @ematipicoAdd option
include
to multiple sections of the configurationfiles.include
;formatter.include
;linter.include
;organizeImports.include
;When
include
andignore
are both specified,ignore
takes precedence overinclude
Add option
overrides
, where users can modify the behaviour of the tools for certain files or paths.For example, it's possible to modify the formatter
lineWidth
, and evenquoteStyle
for certain files that are included in glob pathgenerated/**
:Or, you can disable certain rules for certain path, and disable the linter for other paths:
Bug fixes
extends
was incorrectly applied to thebiome.json
file. Contributed by @ematipicoEditors
Bug fixes
Fix #404. Biome intellij plugin now works on Windows. Contributed by @victor-teles
Fix #402. Biome
format
on intellij plugin now recognize biome.json. Contributed by @victor-telesFormatter
Enhancements
OnceCell
for the Memoized memory because that's what theRefCell<Option>
implemented. Contributed by @denbezrukovLinter
Promoted rules
The following rules are now recommended:
Bug fixes
infer
type. in rule noUndeclaredVariables. Contributed by @denbezrukovNew features
Add noEmptyCharacterClassInRegex rule. The rule reports empty character classes and empty negated character classes in regular expression literals. Contributed by @Conaclos
Add noMisleadingInstantiator rule. The rule reports the misleading use of the
new
andconstructor
methods. Contributed by @unvalleyAdd noUselessElse rule.
The rule reports
else
clauses that can be omitted because theirif
branches break.Contributed by @Conaclos
Add noUnusedImports rule.
The rule reports unused imports and suggests to remove them.
Contributed by @Conaclos
noUnusedVariables reports also unused imports, but don't suggest their removal.
Once noUnusedImports stabilized,
noUnusedVariables will not report unused imports.
Add useShorthandAssign rule.
The rule enforce use of shorthand operators that combine variable assignment and some simple mathematical operations. For example, x = x + 4 can be shortened to x += 4.
Contributed by @victor-teles
Add useAsConstAssertion rule.
The rule enforce use of
as const
assertion to infer literal types.Contributed by @unvalley
Add noMisrefactoredShorthandAssign rule.
The rule reports shorthand assigns when variable appears on both sides. For example
x += x + b
Contributed by @victor-teles
Add noApproximativeNumericConstant rule. Contributed by @nikeee
Add noInteractiveElementToNoninteractiveRole rule. The rule enforces the non-interactive ARIA roles are not assigned to interactive HTML elements. Contributed by @nissy-dev
Add useAriaActivedescendantWithTabindex rule. The rule enforces that
tabIndex
is assigned to non-interactive HTML elements witharia-activedescendant
. Contributed by @nissy-devAdd noUselessLoneBlockStatements rule.
The rule reports standalone blocks that don't include any lexical scoped declaration.
Contributed by @emab
Add noInvalidNewBuiltin rule.
The rule reports use of
new
onSymbol
andBigInt
. Contributed by @lucaswengEnhancements
The following rules have now safe code fixes:
noAccumulatingSpread makes more check in order to reduce potential false positives. Contributed by @Vivalldi
noConstAssign now provides an unsafe code fix that replaces
const
withlet
. Contributed by @vasucp1207noExcessiveComplexity default complexity threshold is now
15
. Contributed by @arendjrnoPositiveTabindexValue now provides an unsafe code fix that set to
0
the tab index. Contributed by @vasucp1207noUnusedLabels no longer reports unbreakable labeled statements. Contributed by @Conaclos
noUnusedVariables now reports unused TypeScript's type parameters. Contributed by @Conaclos
useAnchorContent now provides an unsafe code fix that removes the `aria-hidden`` attribute. Contributed by @vasucp1207
useValidAriaProps now provides an unsafe code fix that removes invalid properties. Contributed by @vasucp1207
noExcessiveComplexity
was renamed tonoExcessiveCognitiveComplexity
Bug fixes
Fix #294. noConfusingVoidType no longer reports false positives for return types. Contributed by @b4s36t4
Fix #313. noRedundantUseStrict now keeps leading comments.
Fix #383. noMultipleSpacesInRegularExpressionLiterals now provides correct code fixes when consecutive spaces are followed by a quantifier. Contributed by @Conaclos
Fix #397. useNumericLiterals now provides correct code fixes for signed numbers. Contributed by @Conaclos
Fix 452. The linter panicked when it met a malformed regex (a regex not ending with a slash).
Fix #104. We now correctly handle types and values with the same name.
Parser
Enhance diagnostic for infer type handling in the parser. The 'infer' keyword can only be utilized within the 'extends' clause of a conditional type. Using it outside of this context will result in an error. Ensure that any type declarations using 'infer' are correctly placed within the conditional type structure to avoid parsing issues. Contributed by @denbezrukov
Add support for parsing trailing commas inside JSON files:
Contributed by @nissy-dev
VSCode
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.