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

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

Prettier config used at GitHub
https://github.com/github/prettier-config

prettier prettier-config

Last synced: 8 months ago
JSON representation

Prettier config used at GitHub

Awesome Lists containing this project

README

          

# prettier-config
Prettier config used at GitHub

## Usage

Install the package using `npm` (or `yarn`)

```sh
npm install --save-dev @github/prettier-config
```

Add the `prettier` key to your `package.json`

```diff
diff --git a/package.json b/package.json
index 2ecef3d..260838f 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
"keywords": [
"prettier"
],
+ "prettier": "@github/prettier-config",
"license": "MIT",
"author": "GitHub Inc.",
"main": "index.js"
```

[Check out the `prettier` documentation for more info on sharing configurations](https://prettier.io/docs/en/configuration.html#sharing-configurations).