Inforit's preferred prettier configuration.
Simply install the package with npm:
npm install --save-dev inforit-prettier-config
Configuring your project to use inforit-prettier-config
can be done in several ways.
The easiest is the package.json solution, the most extensible is the .prettierrc.js version.
Simply add a "prettier" key with the package name:
{
"prettier": "inforit-prettier-config"
}
This solution requires you to put a .prettierrc.js
file at the root of your project with the following code:
module.exports = {
...require("inforit-prettier-config"),
// optional overrides:
jsxBracketSameLine: true
};