@stijlbreuk/prettier-config
v1.5.3
Published
A global Prettier config to be used in Stijlbreuk projects
Downloads
169
Readme
@stijlbreuk/prettier-config
Table of Contents
Installation
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
Usage
When installed, to use the config you will need to configure prettier to do so.
The following options are available:
package.json
In your package.json
add the prettier
key followed by the package name:
{
"name": "package-name",
"version": "1.0.0",
"prettier": "@stijlbreuk/prettier-config"
}
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
}