Available on npmjs.org : @slickteam/prettier
- Install dependency
npm i -D @slickteam/prettier
- In
package.json
, add configuration of prettier :
{
"prettier": "@slickteam/prettier"
}
- In
package.json
, add commands :
{
"scripts": {
"prettier": "prettier --cache --check .",
"prettier:fix": "prettier --cache --write ."
}
}