Skip to content

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

inforit-prettier-config

Inforit's preferred prettier configuration.

Installation

Simply install the package with npm:

npm install --save-dev inforit-prettier-config

Configuration

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.

package.json

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

{
"prettier": "inforit-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("inforit-prettier-config"),// optional overrides:jsxBracketSameLine: true};

About

My preferred prettier config

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages