To install the package, simply choose your package manager of choice and install @stijlbreuk/prettier-config
.
For example with npm:
$ npm install --save-dev @stijlbreuk/prettier-config
When installed, to use the config you will need to configure prettier to do so.
The following options are available:
In your package.json
add the prettier
key followed by the package name:
{
"name": "package-name",
"version": "1.0.0",
"prettier": "@stijlbreuk/prettier-config"
}
In your prettier config, albeit .prettierrc
or prettier.config.js
etc., simply have it be
"@stijlbreuk/prettier-config"
or to extend the config
module.exports = {
...require('@stijlbreuk/prettier-config'),
useTabs: true
}