@fundamend/config-prettier
v0.1.1
Published
_config-prettier_ is a configuration preset for [Prettier] used by the [fundamend.dev] ecosystem.
Downloads
8
Readme
config-prettier
config-prettier is a configuration preset for Prettier used by the fundamend.dev ecosystem.
Installation
Use your favorite Node.js package manager, for example npm, like so:
npm install --save-dev @fundamend/config-prettier
... or yarn, like so:
yarn add --dev @fundamend/config-prettier
Usage
In your .prettierrc.js, import config-prettier and spread it into the exported object, like so:
const config = require('@fundamend/config-prettier');
module.exports = {
...config
};
You can extend the imported preset by adding additional configuration options to the exported configuration object, for example like this:
const config = require('@fundamend/config-prettier');
module.exports = {
...config,
tabWidth: 4
};
Settings that already exist in the configuration preset will be overwritten.