36 lines
867 B
Markdown
36 lines
867 B
Markdown
# @prettier/plugin-hermes
|
|
|
|
[](https://www.npmjs.com/package/@prettier/plugin-hermes)
|
|
[](https://github.com/prettier/prettier/blob/main/license)
|
|
|
|
> 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:
|
|
|
|
```yaml
|
|
plugins:
|
|
- "@prettier/plugin-hermes"
|
|
```
|
|
|
|
**Requires prettier >= 3.6**
|
|
|
|
Or config explicitly
|
|
|
|
```yaml
|
|
overrides:
|
|
- files:
|
|
- "**/*.{js.flow,js,mjs,cjs}"
|
|
options:
|
|
plugins:
|
|
- "@prettier/plugin-hermes"
|
|
parser: hermes
|
|
```
|