@will-stone/prettier-config
v8.0.1
Published
My personal Prettier config
Downloads
83
Readme
Prettier Config
My personal Prettier config.
Usage
Install
npm i -D prettier @will-stone/prettier-config
Use config
// package.json
{
"prettier": "@will-stone/prettier-config"
}
Lint Staged
If you would like to apply formatting before every commit, you can add the
following to your package.json
:
{
"scripts": {
"prepare": "husky install"
},
"lint-staged": {
"*.{css,json,md}": ["prettier --write"]
}
}
and then
npm i -D husky lint-staged
npx husky install
npx husky add .husky/pre-commit "npx --no lint-staged"