Prettier 3.6 released with experimental CLI and official OXC and Hermes plugins

Prettier 3.6 released with experimental CLI and official OXC and Hermes plugins

Prettier 3.6 has been released as the latest version of this popular, opinionated code formatter that integrates with many code editors and IDEs. This version introduces a new experimental high-performance command-line interface, which can now be enabled in all installations using the --experimental-cli flag. Previously available only in preview versions, this CLI aims to deliver faster formatting for users comfortable with feature flags.

Alongside this, the update adds two official plugins to further expand formatting support. The @prettier/plugin-oxc plugin leverages the OXC parser, written in Rust, to handle JavaScript and TypeScript with new oxc and oxc-ts parsers. The @prettier/plugin-hermes plugin utilizes the Hermes JavaScript engine, introducing a new hermes parser for Flow syntax. These plugins are distributed separately from Prettier’s core. Reflecting its commitment to Flow, Prettier plans to make the Hermes-based parser the default for Flow syntax support in version 4.

In addition to these new features, Prettier 3.6 brings a range of enhancements and bug fixes. Updates cover the core formatting and handling of JavaScript, TypeScript, CSS, JSON, Flow, HTML, and many other supported languages.

by Paul

MORE ABOUT: #Prettier
  • FreeOpen Source
  • ...

Prettier is an opinionated code formatter designed to enforce a consistent style by parsing your code and re-printing it with its own rules. It supports a variety of languages, ensuring uniformity in codebases. Key features include automated code formatting, which reduces the need for manual styling decisions and enhances readability.

No comments so far, maybe you want to be first?
Gu