893 B
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:
-
Install the plugin
yarn add --dev prettier @prettier/plugin-oxc -
Add the following to your
.prettierrcfileplugins: - "@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).