package
Hermes parser plugin for Prettier.
npm install prettier-plugin-hermes-parserGitHub-flavored package documentation.
Across all versions, last 30 days.
85,131 in 30 days
Runtime metadata.
Estimated unpacked size across 1 packages.
1.2 MB
Includes dependencies.
Hermes parser plugin for Prettier. Unless you want to be on the bleeding edge, you should use the official @prettier/plugin-hermes instead.
More details on using Prettier plugins: https://prettier.io/docs/en/plugins.html#using-plugins
To then use the parser you will need to instruct Prettier to use hermes as the parser for your required files:
// .prettierrc
{
"plugins": ["prettier-plugin-hermes-parser"],
"overrides": [
{
"files": ["*.js", "*.jsx", "*.flow"],
"options": {
"parser": "hermes"
}
}
]
}More details on configuring Prettier parsers: https://prettier.io/docs/en/configuration.html#setting-the-parserdocsenoptionshtmlparser-option