@osdevisnot/prettier
v6.0.0
Published
Sensible Code Formatting Setup in **One Command**
Downloads
323
Readme
@osdevisnot/prettier
Sensible Code Formatting Setup in One Command
$ yarn add --dev @osdevisnot/prettier
or
npm install --save-dev @osdevisnot/prettier
What
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-quick
andprettier-plugin-packagejson
as dependencies.These dependencies are marked with
*
so that you always get latest versions for these dependencies.When installed, we use a
postinstall
script to configure project with sensible defaults:[x] sets
prettier
property inpackage.json
to@osdevisnot/prettier
if not already defined[x] removes
.prettierrc
andprettier.config.js
if these files exist[x] sets
husky
property inpackage.json
to usepretty-quick
onpre-commit
(if not already defined) :
{ "husky": { "hooks": { "pre-commit": "pretty-quick --staged" } } }