@gotrip/prettier-config
v1.0.1
Published
GoTrip base configuration for Prettier
Downloads
3
Readme
Recommended Prettier configuration to create formatted code with best practices.
Installation
Install the package as development dependency, alongside prettier
package
npm i @gotrip/prettier-config prettier -D
or yarn
yarn add @gotrip/prettier-config prettier -D
Usage
In your package.json
, add the following:
{
...
"prettier": "@gotrip/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('@gotrip/prettier-config')
// some overrides if needed
}