Skip to content

Bonfida/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@bonfida/prettier-config

Getting started

1. Installation

Using npm:

npm i @bonfida/prettier-config --save-dev

Using Yarn:

yarn add @bonfida/prettier-config --dev

2. Usage

Scenario 1 - Basic usage

Edit package.json:

{
  // ...
  "prettier": "@bonfida/prettier-config"
}

Scenario 2 - Overrides

If you want to override config, you need to use .prettierrc.js instead of package.json and edit it like that:

import bonfidaPrettierConfig from '@bonfida/prettier-config';

export default {
  ...bonfidaPrettierConfig,
  semi: false,
};

That's it! 🎉

For more information read Prettier Official Documentation.

About

Prettier config shared across Bonfida projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published