Prettier
An opinionated code formatter to enforce consistent style on save
Needs to be configured to work with eslint to get correct code, see eslint for info
Other
Can set prettier.require
in settings to only run in Vscode on save
Config
Use .prettierrc.yaml
Cli
Use yarn first in your project with prettier installed so you don't have to install globally
Last updated