Update dependency @biomejs/biome to v2.0.6 - autoclosed #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/biomejs-biome-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.0.0->2.0.6Release Notes
biomejs/biome (@biomejs/biome)
v2.0.6Compare Source
Patch Changes
#6557
fd68458Thanks @ematipico! - Fixed a bug where Biome didn't provide all the available code actions when requested by the editor.#6511
72623faThanks @Conaclos! - Fixed #6492. TheorganizeImportsassist action no longer duplicates a comment at the start ofthe file when
:BLANK_LINE:precedes the first import group.#6557
fd68458Thanks @ematipico! - Fixed #6287 where Biome Language Server didn't adhere to thesettings.requireConfigurationoption when pulling diagnostics and code actions.Note that for this configuration be correctly applied, your editor must support dynamic registration capabilities.
#6551
0b63b1dThanks @Conaclos! - Fixed #6536.useSortedKeysno longer panics in some edge cases where object spreads are involved.#6503
9a8fe0fThanks @ematipico! - Fixed #6482 where nursery rules that belonged to a domain were incorrectly enabled.#6565
e85761cThanks @daivinhtran! - Fixed #4677: Now thenoUnusedImportsrule won't produce diagnostics for types used in JSDoc comment of exports.#6166
b8cbd83Thanks @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
5f42630Thanks @denbezrukov! - Fixed #6547. Now the Biome CSS parser correctly parses@starting-stylewhen it's used inside other at-rules. The following example doesn't raise an error anymore:#6458
05402e3Thanks @ematipico! - Fixed an issue where the ruleuseSemanticElementsused the incorrect range when positioning suppression comments.#6560
6d8a6b9Thanks @siketyan! - Fixed #6559: the error message on detected a large file was outdated and referred a removed configuration optionfiles.ignore.#6458
05402e3Thanks @ematipico! - Fixed #6384. The ruleuseAltTextnow emits a diagnostic with a correct range, so suppression comments can work correctly.#6518
7a56288Thanks @wojtekmaj! - Fixed #6508, where the rulenoUselessFragmentsincorrectly flagged Fragments containing HTML entities as unnecessary.#6517
c5217cfThanks @arendjr! - Fixed #6515. When using theextendsfield 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.jsonhad to contain an exportdeclaration similar to this:
You may now use one of these as well:
Or:
#6219
a3a3715Thanks @huangtiandi1999! - Added new nursery rulenoUnassignedVariables, which disallowsletorvarvariables that are read but never assigned.The following code is now reported as invalid:
The following code is now reported as valid:
#6395
f62e748Thanks @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
f28b075Thanks @daivinhtran! - Fixed #6536. Now the rulenoUselessFragmentsproduces diagnostics for a top-level useless fragment that is in a return statement.#6320
5705f1aThanks @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
2782175Thanks @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_modulesor external files).Now the language server doesn't emit any errors and it exits gracefully.
#6524
a27b825Thanks @vladimir-ivanov! - Fixed #6500: TheuseReadonlyClassPropertiesrule now correctly marks class properties asreadonlywhen 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
e128ea9Thanks @anthonyshew! - Added a new nursery rulenoAlertthat disallows the use ofalert,confirmandprompt.The following code is deemed incorrect:
#6548
37e9799Thanks @ematipico! - Fixed #6459, where the Biome LSP was not taking into account the correct settings when applyingsource.fixAll.biomecode action.v2.0.5Compare Source
Patch Changes
#6461
38862e6Thanks @ematipico! - Fixed #6419, a regression where stdin mode would create a temporary new file instead of using the one provided by the user. This was an intended regression.Now Biome will use the file path passed via
--std-file-path, and apply the configuration that matches it.#6480
050047fThanks @Conaclos! - Fixed #6371.useNamingConvention now checks the string case of objects' property shorthand.
#6477
b98379dThanks @ematipico! - Fixed an issue where Biome formatter didn't format consistently CSS value separated by commas.#6248
ec7126cThanks @fireairforce! - Fixed grit pattern matching for different kinds of import statements.The grit pattern
import $imports from "foo"will match the following code:v2.0.4Compare Source
Patch Changes
7472d9eThanks @ematipico! - Fixed an issue where the binary wasn't correctly mapped.v2.0.3Patch Changes
#6439
7e4da4eThanks @ematipico! - Fixed an issue where the correct rights aren't added to the binary during publishing#6297
cc4b8c9Thanks @vladimir-ivanov! - Added a new lintuseReadonlyClassPropertiesrule.This rule is a port of ESLint's prefer-readonly rule.
Example:
v2.0.2Patch Changes
ec7c63dThanks @ematipico! - Fixed an issue where binaries weren't copied anymore inside the@biomejs/cli-*packages.v2.0.1Compare Source
Patch Changes
#6425
00e97adThanks @siketyan! - Fixed #6391: the rulenoUselessFragmentsno longer reports a fragment that contains whitespaces which aren't trimmed by the runtime.#6417
dd88565Thanks @ematipico! - Fixed #6360: The following pseudo classes and elements are no longer reported bynoUnknownPseudoClassornoUnknownPseudoElementrules.:open::details-content::prefix::search-text::suffix#6417
dd88565Thanks @ematipico! - Fixed #6357, where the boolean values weren't correctly merged when using theextendsfunctionality. Now Biome correctly merges the values.#6417
dd88565Thanks @ematipico! - Fixed #6341: Fixed an issue where Biome would throw an error for the language tagsnbandnn.#6385
94142ddThanks @siketyan! - Fixed #6377: The rule noSelfCompare now correctly compares two function calls with different arguments.#6417
dd88565Thanks @ematipico! - Fixed #6278:useExhaustiveDependenciesno longer adds duplicated dependencies into the list.#6417
dd88565Thanks @ematipico! - Fix #6396, wherevi.useFakeTimers()andvi.useRealTimers()incorrectly triggered React Hooks-related rules#6417
dd88565Thanks @ematipico! - Fixed a bug where Biome didn't correctly discover nested configuration files when using thelintcommand and the linter is disabled in the root configuration.#6422
594ec50Thanks @ematipico! - Removed the experimental rename feature from Biome LSP, which caused some issues inside existing editors such as Zed.#6388
c6942d2Thanks @siketyan! - Fixed #6375: the formatter no longer inserts an extra empty line before a semicolon when it has leading comments.Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), 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 Renovate Bot.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: bun.lock
Update dependency @biomejs/biome to v2.0.2to Update dependency @biomejs/biome to v2.0.3957a283e449826ce0394Update dependency @biomejs/biome to v2.0.3to Update dependency @biomejs/biome to v2.0.49826ce0394857828f2d5Update dependency @biomejs/biome to v2.0.4to Update dependency @biomejs/biome to v2.0.5857828f2d59bed451948Update dependency @biomejs/biome to v2.0.5to Update dependency @biomejs/biome to v2.0.69bed451948fbf0f1319cfbf0f1319c2b9fd91690Update dependency @biomejs/biome to v2.0.6to Update dependency @biomejs/biome to v2.0.6 - autoclosedPull request closed