@primer-io/prettier-config
v1.0.1
Published
Shared config for Prettier for frontend projects @ Primer
Downloads
3
Keywords
Readme
@primer-io/prettier-config
Shared config for Prettier for frontend projects @ primer.io
How to use
Install
yarn add --dev @primer-io/prettier-config
a) use with package.json
// package.json
{
...,
"prettier": "@primer-io/prettier-config"
}
b) use with .prettierrc.json
// .prettierrc.json
"@primer-io/prettier-config"
Overrides
Options above do not allow to extend the configuration. For that, you need to use following approach:
// .prettierrc.js
module.exports = {
...require("@primer-io/prettier-config"),
// custom overrides here
};