@mediamonks/prettier-config

1.0.1 • Public • Published

MediaMonks - Prettier Configuration

The official Media.Monks prettier configuration, based on the Frontend Coding Standards.

Installation

The configuration can be installed via npm.

npm install --dev @mediamonks/prettier-config

To inform prettier of this configuration, you have to add the prettier property to your package.json file:

"prettier": "@mediamonks/prettier-config"

Instead of manually editing your package.json, you can also utilize the npm pkg subcommand:

npm pkg set prettier=@mediamonks/prettier-config

Extending

Prettier does not ship with a built-in way of extending configurations.

To extend the configuration, you will have to create a .prettierrc.js file (or .prettierrc.cjs if your package is a "type": "module") and import the Media.Monks configuration using require:

module.exports = {
  ...require("@mediamonks/prettier-config"),
  semi: false,
};

If you have previously added the configuration to your package.json, via the prettier property, you can now remove it. You can also utilize the npm pkg:

npm pkg delete prettier

Readme

Keywords

Package Sidebar

Install

npm i @mediamonks/prettier-config

Weekly Downloads

356

Version

1.0.1

License

MIT

Unpacked Size

3.48 kB

Total Files

5

Last publish

Collaborators

  • will-newton
  • jessel
  • twan.braas
  • leroykorterink
  • mientjan
  • devmonk
  • thanarie
  • nathanuphoff
  • larsvanbraam