@broxus/prettier-config
v1.2.1
Published
Broxus base configuration for Prettier
Downloads
57
Readme
Recommended Prettier configuration to create formatted code with best practices.
Installation
Install the package as development dependency, alongside prettier
package
npm i @broxus/prettier-config prettier -D
or yarn
yarn add @broxus/prettier-config prettier -D
Usage
In your package.json
, add the following:
{
...
"prettier": "@broxus/prettier-config",
"hysky": {
"hooks": {
"pre-commit": "npx lint-staged"
}
}
...
}
If you need to change or add any other config to the prettier, you must remove the prettier option on package.json
and create a .prettierrc.js
file with the following content:
module.exports = {
...require('@broxus/prettier-config')
// some overrides if needed
}