Using Yarn:
yarn add -D @myparcel/prettier-config
Using NPM:
npm i -D @myparcel/prettier-config
Add this to your package.json
:
{
"prettier": "@myparcel/prettier-config"
}
And you're good to go! There are a few more specific configurations below.
{
"prettier": "@myparcel/prettier-config/es5"
}
- trailingComma: 'all'
+ trailingComma: 'es5'
{
"prettier": "@myparcel/prettier-config/vue"
}
- bracketSpacing: false
+ bracketSpacing: true