Skip to content

duzantheman/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

prettier-config

My central Prettier config file

Install

npm i -D @cgduzan/prettier-config prettier @trivago/prettier-plugin-sort-imports

Usage

Create or update a .prettierrc.js file with the following format:

module.exports = {
  ...require("@cgduzan/prettier-config"),

  // include this if there is a particular import order
  // importOrder: [],
}

or in your package.json (if not specifying importOrder):

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

If using the .prettierrc.js file and a .prettierrc file currently exists, be sure to remove the .prettierrc file and update any prettier npm scripts to point at the new .prettierrc.js file

Rules

Here are the Prettier options and the prettier-plugin-sort-imports options

(Almost) all options are included in this module, even if they are using the default value. That way, it is easier to see what options are available and change them if necessary.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published