@bonfida/prettier-config
v1.1.0
Published
Prettier config shared across Bonfida projects
Downloads
38
Readme
@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.