Skip to content

Update dependency @biomejs/biome to v2.0.6 #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 29, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@biomejs/biome (source) 2.0.2 -> 2.0.6 age adoption passing confidence

Release Notes

biomejs/biome (@​biomejs/biome)

v2.0.6

Compare Source

Patch Changes
  • #​6557 fd68458 Thanks @​ematipico! - Fixed a bug where Biome didn't provide all the available code actions when requested by the editor.

  • #​6511 72623fa Thanks @​Conaclos! - Fixed #​6492. The
    organizeImports assist action no longer duplicates a comment at the start of
    the file when :BLANK_LINE: precedes the first import group.

  • #​6557 fd68458 Thanks @​ematipico! - Fixed #​6287 where Biome Language Server didn't adhere to the settings.requireConfiguration option when pulling diagnostics and code actions.
    Note that for this configuration be correctly applied, your editor must support dynamic registration capabilities.

  • #​6551 0b63b1d Thanks @​Conaclos! - Fixed #​6536. useSortedKeys no longer panics in some edge cases where object spreads are involved.

  • #​6503 9a8fe0f Thanks @​ematipico! - Fixed #​6482 where nursery rules that belonged to a domain were incorrectly enabled.

  • #​6565 e85761c Thanks @​daivinhtran! - Fixed #​4677: Now the noUnusedImports rule won't produce diagnostics for types used in JSDoc comment of exports.

  • #​6166 b8cbd83 Thanks @​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:

    function foo() {
      const x = 0;
      const y = 1;
      const z = 2;
    }

    The following code is now reported as valid when the limit of maximum lines is set to 3:

    const bar = () => {
      const x = 0;
      const z = 2;
    };
  • #​6553 5f42630 Thanks @​denbezrukov! - Fixed #​6547. Now the Biome CSS parser correctly parses @starting-style when it's used inside other at-rules. The following example doesn't raise an error anymore:

    @​layer my-demo-layer {
      @​starting-style {
        div.showing {
          background-color: red;
        }
      }
    }
  • #​6458 05402e3 Thanks @​ematipico! - Fixed an issue where the rule useSemanticElements used the incorrect range when positioning suppression comments.

  • #​6560 6d8a6b9 Thanks @​siketyan! - Fixed #​6559: the error message on detected a large file was outdated and referred a removed configuration option files.ignore.

  • #​6458 05402e3 Thanks @​ematipico! - Fixed #​6384. The rule useAltText now emits a diagnostic with a correct range, so suppression comments can work correctly.

  • #​6518 7a56288 Thanks @​wojtekmaj! - Fixed #​6508, where the rule noUselessFragments incorrectly flagged Fragments containing HTML entities as unnecessary.

  • #​6517 c5217cf Thanks @​arendjr! - Fixed #​6515. When using the
    extends field to extend a configuration from an NPM package, we now accept the
    condition names "biome" and "default" for exporting the configuration in
    the package.json.

    This means that where previously your package.json had to contain an export
    declaration similar to this:

    {
      "exports": {
        ".": "./biome.json"
      }
    }

    You may now use one of these as well:

    {
      "exports": {
        ".": {
          "biome": "./biome.json"
        }
      }
    }

    Or:

    {
      "exports": {
        ".": {
          "default": "./biome.json"
        }
      }
    }
  • #​6219 a3a3715 Thanks @​huangtiandi1999! - Added new nursery rule noUnassignedVariables, which disallows let or var variables that are read but never assigned.

    The following code is now reported as invalid:

    let x;
    if (x) {
      console.log(1);
    }

    The following code is now reported as valid:

    let x = 1;
    if (x) {
      console.log(1);
    }
  • #​6395 f62e748 Thanks @​mdevils! - Added the new nursery rule noImplicitCoercion, which disallows shorthand type conversions in favor of explicit type conversion functions.

    Example (Invalid): Boolean conversion using double negation:

    !!foo;
    !!(foo + bar);

    Example (Invalid): Number conversion using unary operators:

    +foo;
    -(-foo);
    foo - 0;
    foo * 1;
    foo / 1;

    Example (Invalid): String conversion using concatenation:

    "" + foo;
    foo + "";
    `` + foo;
    foo += "";

    Example (Invalid): Index checking using bitwise NOT:

    ~foo.indexOf(1);
    ~foo.bar.indexOf(2);

    Example (Valid): Using explicit type conversion functions:

    Boolean(foo);
    Number(foo);
    String(foo);
    foo.indexOf(1) !== -1;
  • #​6544 f28b075 Thanks @​daivinhtran! - Fixed #​6536. Now the rule noUselessFragments produces diagnostics for a top-level useless fragment that is in a return statement.

  • #​6320 5705f1a Thanks @​mdevils! - Added the new nursery rule useUnifiedTypeSignature, 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:

    function f(a: number): void;
    function f(a: string): void;
    interface I {
      a(): void;
      a(x: number): void;
    }

    Example (Valid): Unified signatures:

    function f(a: number | string): void {}
    interface I {
      a(x?: number): void;
    }

    Example (Valid): Different return types cannot be merged:

    interface I {
      f(): void;
      f(x: number): number;
    }
  • #​6545 2782175 Thanks @​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_modules or external files).
    Now the language server doesn't emit any errors and it exits gracefully.

  • #​6524 a27b825 Thanks @​vladimir-ivanov! - Fixed #​6500: The useReadonlyClassProperties rule now correctly marks class properties as readonly when 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:

    class Price {
      #price: string;
    
      @​Input()
      set some(value: string | number) {
        if (
          value === undefined ||
          value === null ||
          value === "undefined" ||
          value === "null" ||
          Number.isNaN(value)
        ) {
          this.#price = "";
        } else {
          this.#price = "" + value;
        }
      }
    }
  • #​6355 e128ea9 Thanks @​anthonyshew! - Added a new nursery rule noAlert that disallows the use of alert, confirm and prompt.

    The following code is deemed incorrect:

    alert("here!");
  • #​6548 37e9799 Thanks @​ematipico! - Fixed #​6459, where the Biome LSP was not taking into account the correct settings when applying source.fixAll.biome code action.

v2.0.5

Compare Source

Patch Changes
  • #​6461 38862e6 Thanks @​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 050047f Thanks @​Conaclos! - Fixed #​6371.
    useNamingConvention now checks the string case of objects' property shorthand.

  • #​6477 b98379d Thanks @​ematipico! - Fixed an issue where Biome formatter didn't format consistently CSS value separated by commas.

    .font-heading {
    - font-feature-settings: var(--heading-salt), var(--heading-ss06),
    -   var(--heading-ss11), var(--heading-cv09), var(--heading-liga),
    -   var(--heading-calt);
    
    +  font-feature-settings:
    +    var(--heading-salt), var(--heading-ss06), var(--heading-ss11),
    +    var(--heading-cv09), var(--heading-liga), var(--heading-calt);
    }
    
  • #​6248 ec7126c Thanks @​fireairforce! - Fixed grit pattern matching for different kinds of import statements.

    The grit pattern import $imports from "foo" will match the following code:

    import bar from "foo";
    import { bar } from "foo";
    import { bar, baz } from "foo";

v2.0.4

Compare Source

Patch Changes

v2.0.3

Patch Changes
  • #​6439 7e4da4e Thanks @​ematipico! - Fixed an issue where the correct rights aren't added to the binary during publishing

  • #​6297 cc4b8c9 Thanks @​vladimir-ivanov! - Added a new lint useReadonlyClassProperties rule.
    This rule is a port of ESLint's prefer-readonly rule.

    Example:

    class Example {
      // All properties below can be marked as readonly
      public constantValue = 42;
      protected initializedInConstructor: string;
      private privateField = true;
    
      constructor(initializedInConstructor: string) {
        this.initializedInConstructor = initializedInConstructor;
      }
    }

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/biomejs-biome-2.x branch from ecf8ee7 to abe1ef2 Compare June 29, 2025 17:12
@renovate renovate bot force-pushed the renovate/biomejs-biome-2.x branch from abe1ef2 to 7f5cbd0 Compare June 29, 2025 17:13
@mrbusche mrbusche merged commit fea1b37 into main Jun 29, 2025
5 checks passed
@mrbusche mrbusche deleted the renovate/biomejs-biome-2.x branch June 29, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant