Add changelog for hermes and oxc plugin (#17629)
* Add changelog for `hermes` and `oxc` plugin * Apply automated changes * Move to `flow/` * Spellcheck * Reword * Reword * Apply automated changes * Fix * Reword --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
46a55c1feb
commit
f41214b2f1
5 files changed
+58
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#### Support experimental CLI (#17151, #17396 by @fisker)
|
||||
#### [HIGHLIGHT] Support experimental CLI (#17151, #17396 by @fisker)
|
||||
|
||||
You may already heard or used our new [performance improved CLI](https://prettier.io/blog/2023/11/30/cli-deep-dive). From prettier main, you can use it without installing unstable v4 version.
|
||||
You may already heard or used our new [performance improved CLI](https://prettier.io/blog/2023/11/30/cli-deep-dive). From prettier main, you can now use it without installing unstable v4 version.
|
||||
|
||||
```sh
|
||||
# Run CLI with `--experimental-cli`
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
#### [HIGHLIGHT] Added a new official plugin `@prettier/plugin-hermes` (#17520 by @fisker)
|
||||
|
||||
`@prettier/plugin-hermes` is based on [Hermes JS Engine](https://github.com/facebook/hermes/blob/main/README.md).
|
||||
|
||||
This plugin include a new parser `hermes` (Flow syntax), to use this plugin:
|
||||
|
||||
1. Install the plugin
|
||||
|
||||
```sh
|
||||
yarn add --dev prettier @prettier/plugin-hermes
|
||||
```
|
||||
|
||||
2. Add the following to your `.prettierrc` file
|
||||
|
||||
```yaml
|
||||
plugins:
|
||||
- "@prettier/plugin-hermes"
|
||||
```
|
||||
|
||||
Due to package size limitation, this plugin is not included in the `prettier` package, it needs to be installed separately.
|
||||
|
||||
**We plan to make this as the default parser for Flow syntax support in v4, we'll also remove `babel-flow` parser in v4, please give it a try.**
|
||||
|
||||
For more information, check [the package homepage](https://github.com/prettier/prettier/tree/main/packages/plugin-hermes).
|
||||
|
||||
Many thanks to the Hermes team.
|
||||
@@ -0,0 +1,26 @@
|
||||
#### [HIGHLIGHT] Added a new official plugin `@prettier/plugin-oxc` (#17472, #17483 by @fisker)
|
||||
|
||||
`@prettier/plugin-oxc` is based on [OXC](https://oxc.rs/)(A **fast** JavaScript and TypeScript parser in Rust).
|
||||
|
||||
This plugin include two new parser `oxc` (JavaScript syntax) and `oxc-ts` (TypeScript syntax), to use this plugin:
|
||||
|
||||
1. Install the plugin
|
||||
|
||||
```sh
|
||||
yarn add --dev prettier @prettier/plugin-oxc
|
||||
```
|
||||
|
||||
2. Add the following to your `.prettierrc` file
|
||||
|
||||
```yaml
|
||||
plugins:
|
||||
- "@prettier/plugin-oxc"
|
||||
```
|
||||
|
||||
Due to package size limitation, this plugin is not included in the `prettier` package, it needs to be installed separately.
|
||||
|
||||
For more information, check [the package homepage](https://github.com/prettier/prettier/tree/main/packages/plugin-oxc).
|
||||
|
||||
<!-- spell-checker: disable-next-line-->
|
||||
|
||||
Many thanks to the OXC team(@boshen, @overlookmotel, and other contributors).
|
||||
@@ -17,6 +17,8 @@ plugins:
|
||||
- "@prettier/plugin-hermes"
|
||||
```
|
||||
|
||||
**Requires prettier >= 3.6**
|
||||
|
||||
Or config explicitly
|
||||
|
||||
```yaml
|
||||
|
||||
@@ -17,6 +17,8 @@ plugins:
|
||||
- "@prettier/plugin-oxc"
|
||||
```
|
||||
|
||||
**Requires prettier >= 3.6**
|
||||
|
||||
Or config explicitly
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in new issue
Block a user