Repository holding my personal Prettier configuration.
npm i -D @creeation/prettier-configThen, 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-commitnpm Scripts
Checks if package files are formatted correctly using Prettier
Note: bound to
prepublishOnly
$ npm testFormats and saves all package files using Prettier
$ npm run format$ npx husky install$ npm test && npx pinst --disable$ npx pinst --enable