Go to file
2019-06-16 10:34:36 +02:00
index.js first version 2019-06-16 10:34:36 +02:00
LICENSE Initial commit 2019-06-16 10:08:12 +02:00
package.json first version 2019-06-16 10:34:36 +02:00
README.md first version 2019-06-16 10:34:36 +02:00

@mastermindzh/prettier-config

My preferred prettier configuration.

Installation

Simply install the package with npm:

npm install --save-dev @mastermindzh/prettier-config

Configuration

Configuring your project to use @mastermindzh/prettier-config can be done in several ways.
The easiest is the package.json solution, the most extensible is the .prettierrc.js version.

package.json

Simply add a "prettier" key with the package name:

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

.prettierrc.js

This solution requires you to put a .prettierrc.js file at the root of your project with the following code:

module.exports = {
  ...require("@mastermindzh/prettier-config"),
  // optional overrides:
  jsxBracketSameLine: true
};