Add hermes parser (#17520)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-05-29 15:30:45 +08:00
1 parent f037a2674c
commit 4df0a871ca
85 files changed
+1231 -108

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
# @prettier/plugin-hermes
> Prettier [Hermes](https://github.com/facebook/hermes/blob/main/README.md) plugin.
## Install
```bash
yarn add --dev prettier @prettier/plugin-hermes
```
## Usage
Create or modify your [prettier configuration file](https://prettier.io/docs/en/configuration) to use the plugin:
```json
{
"overrides": [
{
"files": ["**/*.{js.flow,js,mjs,cjs}"],
"options": {
"plugins": ["@prettier/plugin-hermes"],
"parser": "hermes"
}
}
]
}
```