918 B
918 B
[HIGHLIGHT] Added a new official plugin @prettier/plugin-hermes (#17520 by @fisker)
@prettier/plugin-hermes is based on Hermes JS Engine.
This plugin includes a new parser hermes (Flow syntax), to use this plugin:
-
Install the plugin
yarn add --dev prettier @prettier/plugin-hermes -
Add the following to your
.prettierrcfileplugins: - "@prettier/plugin-hermes"
Due to package size limitations, 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.
Many thanks to the Hermes team.