@bonfida/prettier-config

1.1.0 • Public • Published

@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.

Package Sidebar

Install

npm i @bonfida/prettier-config

Weekly Downloads

12

Version

1.1.0

License

MIT

Unpacked Size

2.96 kB

Total Files

4

Last publish

Collaborators

  • bonfida