2.0.1 • Published 4 years ago
@samuelmeuli/prettier-config v2.0.1
prettier-config
This is my personal configuration for the Prettier code formatter.
Installation
yarn add --dev @samuelmeuli/prettier-config
Usage
Add the following keys to your package.json
file:
{
// ...
"scripts": {
"format": "prettier --write '**/*.{css,html,js,json,jsx,less,md,scss,ts,tsx,vue,yaml,yml}'"
},
"prettier": "@samuelmeuli/prettier-config"
}
You can now run yarn format
to format your code.