Shared Prettier config for my projects
npm install --save-dev @mhld/prettier-config
Add in your package.json
{
"prettier": "@mhld/prettier-config"
}
If you want to overwrite some properties, update your project's prettier.config.js
file to import the rule sets you want:
module.exports = {
...require('@mhld/prettier-config'),
// your overrides here
};
Read the Prettier config docs for more information.