1.0.0 • Published 5 years ago

@mitchreece/prettier-config v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@mitchreece/prettier-config

Configuration options for prettier code formatter.

Config OptionValueRelease
tabWidth2v1.0.0
singleQuotetruev1.0.0
semifalsev1.0.0
arrowParensalwaysv1.0.0
trailingCommaes5v1.0.0

Installation

Install this prettier config by adding the npm packge to your projects dev dependencies.

yarn:

yarn add @mitchreece/prettier-config --dev

npm:

npm i @mitchreece/prettier-config --save-dev

Usage

The easiest way to start using this config in your project is by referencing it in your package.json file:

{
  "prettier": "@mitchreece/prettier-config"
}

See other configuration setup options here.

Extend config

You can also extend/override the config options by creating a .prettierrc.js file in your project root:

module.exports = {
  ...require('@mitchreece/prettier-config'),
  tabSize: 4,
  semi: true,
}

See a full list of available prettier options here.

Compatibility

As some of these format options clash with the options available in .editorconfig's - I have provided an editorconfig that is compatible with this prettier config here.

License

This project is licensed under the MIT License.