Packages

@biomejs/biome

2.6.8 · 15 Nov 2026MIT OR Apache-2.030.3M / weekRepositoryHomepagenpmAtom feed

Your version

2.1.3

29 Jul 2025Where it was published

2.6.9 is the newest release of 2.x.

In short

5 new16 fixed

Release note

The section about @biomejs/biome of a note shared by several packages.

Patch Changes

  • Added the rule noVueReservedKeys, which prevents the use of reserved Vue keys.

    It prevents the use of Vue reserved keys such as those starting with # @biomejs/biome (like $el, $data, $props) and keys starting with _` in data properties, which can cause conflicts and unexpected behavior in Vue components.

Invalid example

<script>
export default {
  data: {
    $el: "",
    _foo: "bar",
  },
};
</script>
<script>
export default {
  computed: {
    $data() {
      return this.someData;
    },
  },
};
</script>

Valid examples

<script>
export default {
  data() {
    return {
      message: "Hello Vue!",
      count: 0,
    };
  },
};
</script>
<script>
export default {
  computed: {
    displayMessage() {
      return this.message;
    },
  },
};
</script>
  • Added @eslint-react/no-nested-component-definitions as a rule source for noNestedComponentDefinitions. Now it will get picked up by biome migrate --eslint.

  • Fixed a website link for the useComponentExportOnlyModules linter rule to point to the correct URL.

  • Fixed #6910: Biome now ignores type casts and assertions when evaluating numbers for noMagicNumbers rule.

  • Fixed #6973: Add support for parsing the :active-view-transition-type() pseudo-class

    :active-view-transition-type(first second) {
    }
  • Added a new JSON rule called noQuickfixBiome, which disallow the use of code action quickfix.biome inside code editor settings.

  • Fixed @vitest/eslint-plugin source url.

  • Fixed ESLint migration for the rule prefer-for from eslint-plugin-solid to Biome's useForComponent.

  • Fixed #6692: The rules noUnusedVariables and noUnusedFunctionParameters no longer cause an infinite loop when the suggested name is not applicable (e.g. the suggested name is already declared in the scope).

  • Fixed the documentation URL for lint/correctness/noUnknownPseudoClass

  • Fixed #6795: noUnassignedVariables now correctly recognizes variables used in JSX ref attributes.

  • Fixed #6622, now the rule useSemanticElements works for JSX self-closing elements too.

  • Fixed #6516: The biome migrate command no longer break the member list with trailing comments.

  • Fixed #6767: useSortedClasses now correctly removes leading and trailing whitespace in className.

    Previously, trailing spaces in className were not fully removed.

    // Think we have this code:
    <div className="text-sm font-bold            " />
    
    // Before: applied fix, but a trailing space was preserved
    <div className="font-bold text-sm " />
    
    // After: applied fix, trailing spaces removed
    <div className="font-bold text-sm" />
  • Added the nursery rule useReactFunctionComponents. This rule enforces the preference to use function components instead of class components.

    Valid:

    function Foo() {
      return <div>Hello, world!</div>;
    }

    Invalid:

    class Foo extends React.Component {
      render() {
        return <div>Hello, world!</div>;
      }
    }
  • Fixed #113, where the Biome Language Server didn't correctly update the diagnostics when the configuration file is modified in the editor. Now the diagnostics are correctly updated every time the configuration file is modified and saved.

  • Fixed #6915: useHookAtTopLevel no longer hangs when rules call themselves recursively.

  • Fixed #5837: Invalid suppression comments such as biome-ignore-all-start or biome-ignore-all-end no longer causes a panic.

  • Support parse import defer(which is a stage3 proposal). The syntax look like this:

    import defer * as foo from "<specifier>";
  • Fixed #6919 and #6920:
    useReadonlyClassProperties now does checks for mutations in async class methods.

    Example:

    class Counter3 {
      private counter: number;
      async count() {
        this.counter = 1;
        const counterString = `${this.counter++}`;
      }
    }
  • Fixed #6939. Biome now understands this binding in classes outside of methods.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.