@osdevisnot/prettier
v6.0.0
Published
Sensible Code Formatting Setup in **One Command**
Downloads
29
Readme
@osdevisnot/prettier
Sensible Code Formatting Setup in One Command
$ yarn add --dev @osdevisnot/prettieror
npm install --save-dev @osdevisnot/prettierWhat
Setup prettier, husky and pretty-quick just by installing @osdevisnot/prettier
Uses postinstall scripts to automatically configure the project.
How
This package brings in
prettier,husky,pretty-quickandprettier-plugin-packagejsonas dependencies.These dependencies are marked with
*so that you always get latest versions for these dependencies.When installed, we use a
postinstallscript to configure project with sensible defaults:[x] sets
prettierproperty inpackage.jsonto@osdevisnot/prettierif not already defined[x] removes
.prettierrcandprettier.config.jsif these files exist[x] sets
huskyproperty inpackage.jsonto usepretty-quickonpre-commit(if not already defined) :
{ "husky": { "hooks": { "pre-commit": "pretty-quick --staged" } } }