Prettier
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.