Skip to content

Shared config for Prettier for frontend projects

License

Notifications You must be signed in to change notification settings

primer-io/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@primer-io/prettier-config

Shared config for Prettier for frontend projects @ primer.io

How to use

Install

yarn add --dev @primer-io/prettier-config

a) use with package.json

// package.json
{
  ...,
  "prettier": "@primer-io/prettier-config"
}

b) use with .prettierrc.json

// .prettierrc.json
"@primer-io/prettier-config"

Overrides

Options above do not allow to extend the configuration. For that, you need to use following approach:

// .prettierrc.js
module.exports = {
  ...require("@primer-io/prettier-config"),
  // custom overrides here
};

More info on shared configurations

About

Shared config for Prettier for frontend projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published