@buames/prettier-config
Shared Prettier configuration. Read more on sharing prettier configurations here.
Installation
Install with yarn
yarn add --dev @buames/prettier-config
Or install with npm
npm install @buames/prettier-config
Usage
package.json
{
// ...
"prettier": "@buames/prettier-config"
}
JSON
// .prettierrc.json
"@buames/prettier-config"
JavaScript
// prettier.config.js or .prettierrc.js
module.exports = '@buames/prettier-config';
Or with overrides
// prettier.config.js or .prettierrc.js
module.exports = {
...require('@buames/prettier-config'),
// ... your overrides
};