Back to Flow

Prettier

website/docs/tools/prettier.md

0.312.1647 B
Original Source

All Flow features are supported by Prettier. See these instructions on how to install Prettier to your project.

To enable full support for the latest Flow features (e.g. pattern matching and type guards) make sure to also install the @prettier/plugin-hermes plugin, for example with:

yarn add --dev @prettier/plugin-hermes

and include

plugins:
  - "@prettier/plugin-hermes"

to your .prettierrc file.

See Also {#toc-see-also}