Skip to content

frontlinersnl/prettier-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%