@gotrip/prettier-config
v1.0.1
Published
GoTrip base configuration for Prettier
Downloads
15
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 -Dor yarn
yarn add @gotrip/prettier-config prettier -DUsage
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
}