github biomejs/biome cli/v1.4.1
CLI v1.4.1

Biome scores 96% compatibility with Prettier! Read our announcement on our blog.

Editors

  • Fix #933. Some files are properly ignored in the LSP too. E.g. package.json, tsconfig.json, etc.

Formatter

Bug fixes

  • Fix some accidental line breaks when printing array expressions within arrow functions and other long lines #917. Contributed by @faultyserver

  • Match Prettier's breaking strategy for ArrowChain layouts #934. Contributed by @faultyserver

  • Fix double-printing of leading comments in arrow chain expressions #951. Contributed by @faultyserver

Linter

Bug fixes

  • Fix #910, where the rule noSvgWithoutTitle should skip elements that have aria-hidden attributes. Contributed by @vasucp1207

Enhancement

  • Implements #924 and #920. noUselessElse now ignores else clauses that follow at least one if statement that doesn't break early. Contributed by @Conaclos

    For example, the following code is no longer reported by the rule:

    function f(x) {
        if (x < 0) {
          // this `if` doesn't break early.
        } else if (x > 0) {
            return x;
        } else {
            // This `else` block was previously reported as useless.
        }
    }

Bug fixes

Parser

What's Changed

Other changes

New Contributors

Full Changelog: cli/v1.4.0...cli/v1.4.1

Don't miss a new biome release

NewReleases is sending notifications on new releases.