github biomejs/biome cli/v1.4.1-nightly.bc772a3
CLI v1.4.1-nightly.bc772a3

pre-release9 months ago

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

New features

  • Add useForOf rule.
    The rule recommends a for-of loop when the loop index is only used to read from an array that is being iterated.
    Contributed by @victor-teles

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.1...cli/v1.4.1-nightly.bc772a3

Don't miss a new biome release

NewReleases is sending notifications on new releases.