Standard Prettier configuration for Software Ventures Limited.
npm install --save-dev @softwareventures/prettier-config
or for yarn users:
yarn add --dev @softwareventures/prettier-config
Add to package.json
:
{
"prettier": "@softwareventures/prettier-config"
}
Recommended: Configure husky and precise-commits to automatically reformat changes before they are committed.
npm install --save-dev husky precise-commits
or
yarn add --dev husky precise-commits
Then add to package.json
:
{
"husky": {
"hooks": {
"pre-commit": "precise-commits"
}
}
}