An open API service indexing awesome lists of open source software.

https://github.com/addono/prettier-config

Reusable Prettier configuration package
https://github.com/addono/prettier-config

Last synced: 15 days ago
JSON representation

Reusable Prettier configuration package

Awesome Lists containing this project

README

          

# `@addono/prettier-config`

Shared configuration for [Prettier](https:/prettier.io).

## Usage

1. Install `@addono/prettier-config` as a dev dependency (`yarn add -D @addono/prettier-config`).
2. Now either:
1. Add the following key-value pair to your `package.json`: `"prettier": "@addono/prettier-config"`, or
2. Set `.prettierrc.json` to `"@addono/prettier-config"`, or
3. Import the dependency in your `.prettierrc.js` and export its values. (This option allows overwriting the values as well.)

## References

https://prettier.io/docs/en/configuration.html