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

9 months ago

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

CLI

  • Remove the CLI options from the lsp-proxy, as they were never meant to be passed to that command. Contributed by @ematipico

  • Add option --config-path to lsp-proxy and start commands. It's now possible to tell the Daemon server to load biome.json from a custom path. Contributed by @ematipico

  • Add new --diagnostic-level option to let users control the level of diagnostics printed by the CLI. Possible values are: "info", "warn", "hint". Contributed by @simonxabris

  • Add option --line-feed to the format command. Contributed by @SuperchupuDev

  • Add option --bracket-same-line to the format command. Contributed by @faultyserve

  • Add option --bracket-spacing to the format command. Contributed by @faultyserve

Bug fixes

  • Fix the command format, now it returns a non-zero exit code when if there pending diffs. Contributed by @ematipico

Configuration

  • Add option formatter.lineFeed. Contributed by @SuperchupuDev
  • Add option javascript.formatter.bracketSameLine. Contributed by @faultyserve
  • Add option javascript.formatter.bracketSpacing. Contributed by @faultyserve

Formatter

New features

  • Add a new option --line-ending. This option allows changing the type of line endings. Contributed by @SuperchupuDev
  • Added a new option called --bracket-spacing to the formatter. This option allows you to control whether spaces are inserted around the brackets of object literals. #627. Contributed by @faultyserver
  • Added a new option called --bracket-same-line to the formatter. This option allows you to control whether spaces are inserted around the brackets of object literals. #627. Contributed by @faultyserver

Bug fixes

  • Fix #832, the formatter no longer keeps an unnecessary trailing comma in type parameter lists. Contributed by @Conaclos

  • Fix #301, the formatter should not break before the in keyword. Contributed by @ematipico

Linter

Promoted rules

The following rules are now recommended:

The following rules are now deprecated:

New features

Enhancements

Bug fixes

Parser

Bug fixes

  • Fix #846 that erroneously parsed <const T,>() => {} as a JSX tag instead of an arrow function when both TypeScript and JSX are enabled.

VSCode

What's Changed

Other changes

New Contributors

Full Changelog: cli/v1.3.3-nightly.38797b7...cli/v1.4.0

Don't miss a new biome release

NewReleases is sending notifications on new releases.