Prettier shared configuration
npm install --save-dev @captive/prettier-config
In the .prettierrc.json
for your project
"@captive/prettier-config"
Or in the .prettierrc.js
, to be able to override rules
module.exports = {
...require('@captive/prettier-config'),
// Override rules
};
@captive/prettier-config
{
"singleQuote": true,
"trailingComma": "all",
"overrides": [
{
"files": [
"*.css",
"*.scss"
],
"options": {
"trailingComma": "none"
}
}
]
}
Prettier: 2.x || 3.x
MIT © Julien Polo [email protected]
@captive/prettier-config is maintained and funded by Captive. The names and logos for captive are trademarks of captive-studio.
We love open source software! See our other projects or hire us to design, develop, and grow your product.