Files
test-repo/changelog_unreleased/javascript/17472.md
T

893 B

[HIGHLIGHT] Added a new official plugin @prettier/plugin-oxc (#17472, #17483 by @fisker)

@prettier/plugin-oxc is based on OXC(A fast JavaScript and TypeScript parser in Rust).

This plugin includes two new parsers oxc (JavaScript syntax) and oxc-ts (TypeScript syntax), to use this plugin:

  1. Install the plugin

    yarn add --dev prettier @prettier/plugin-oxc
    
  2. Add the following to your .prettierrc file

    plugins:
      - "@prettier/plugin-oxc"
    

Due to package size limitations, this plugin is not included in the prettier package, it needs to be installed separately.

For more information, check the package homepage.

Many thanks to the OXC team(@boshen, @overlookmotel, and other contributors).