26 lines
880 B
Markdown
26 lines
880 B
Markdown
#### Added a new official plugin `@prettier/plugin-yuku` (#19628, #19629 by @fisker)
|
|||
|
|
|
||
|
|
`@prettier/plugin-yuku` is powered by [Yuku](https://yuku.fyi/) (A high-performance JavaScript/TypeScript compiler toolchain written in Zig).
|
||
|
|
|
||
|
|
This plugin includes two new parsers: `yuku` (JavaScript syntax) and `yuku-ts` (TypeScript syntax).
|
||
|
|
|
||
|
|
**To use this plugin:**
|
||
|
|
|
||
|
|
1. Install the plugin:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
yarn add --dev prettier @prettier/plugin-yuku
|
||
|
|
```
|
||
|
|
|
||
|
|
2. Add it to your `.prettierrc`:
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
plugins:
|
||
|
|
- "@prettier/plugin-yuku"
|
||
|
|
```
|
||
|
|
|
||
|
|
Due to package size limitations, this plugin is not bundled with the main prettier package and must be installed separately.
|
||
|
|
|
||
|
|
For more information, check [the package homepage](https://github.com/prettier/prettier/tree/main/packages/plugin-yuku).
|
||
|
|
|
||
|
|
Big thanks to [@arshad-yaseen](https://github.com/arshad-yaseen) for his excellent work.
|