Prettier Config
Getting started
Install the package and related peerDependencies as devDependencies
:
npm install --save-dev @repeale/prettier-config prettier
or
yarn add --dev @repeale/prettier-config prettier
Reference @repeale/prettier-config
in your package.json:
{
"name": "my-project",
"version": "1.0.0",
"prettier": "@repeale/prettier-config"
}
or export the config from a .prettierrc.js
file:
module.exports = {
...require('@repeale/prettier-config'),
}
this will allow you to easilly overwrite options.
Or, you can use it in other ways as described in the official documentation.
Config
Check the .prettierrc.json
file if you want to inspect the configuration.