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

8 months ago

CLI

Bug fixes

  • The diagnostics files/missingHandler are now shown only when the option --verbose is passed. Contributed by @ematipico
  • The diagnostics for protected files are now shown only when the option --verbose is passed. Contributed by @ematipico
  • Fix #1465, by taking in consideration the workspace folder when matching a pattern. Contributed by @ematipico
  • Fix #1465, by correctly process globs that contain file names. Contributed by @ematipico

Formatter

Bug fixes

  • Fix #1170. Fix placement of comments inside default switch clause. Now all line comments that have a preceding node will keep their position. Contributed by @kalleep

Linter

Bug fixes

  • Fix #1335. noUselessFragments now ignores code action on component props when the fragment is empty. Contributed by @vasucp1207

  • useConsistentArrayType was accidentally placed in the style rule group instead of the nursery group. It is now correctly placed under nursery.

  • Fix #1483. useConsistentArrayType now correctly handles its option. Contributed by @Conaclos

  • Fix #1502. useArrowFunction now correctly handle functions that return a (comma) sequence expression. Contributed by @Conaclos

    Previously the rule made an erroneous suggestion:

    - f(function() { return 0, 1; }, "");
    + f(() => 0, 1, "")

    Now, the rule wraps any comma sequence between parentheses:

    - f(function() { return 0, 1; }, "");
    + f(() => (0, 1), "")

What's Changed

Other changes

New Contributors

Full Changelog: cli/v1.5.0...cli/v1.5.1

Don't miss a new biome release

NewReleases is sending notifications on new releases.