Repository holding my personal Prettier configuration.
npm i -D @creeation/prettier-config
Then, in your package.json
, set prettier
to @creeation/prettier-config
:
{
"prettier": "@creeation/prettier-config"
}
Git Hooks (using Husky and pretty-quick)
$ npm run git:pre-commit
npm Scripts
Checks if package files are formatted correctly using Prettier
Note: bound to
prepublishOnly
$ npm test
Formats and saves all package files using Prettier
$ npm run format
$ npx husky install
$ npm test && npx pinst --disable
$ npx pinst --enable