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
- Host: GitHub
- URL: https://github.com/github/prettier-config
- Owner: github
- License: mit
- Created: 2020-03-12T14:06:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T13:36:36.000Z (almost 3 years ago)
- Last Synced: 2025-01-30T07:42:41.824Z (8 months ago)
- Topics: prettier, prettier-config
- Language: Dockerfile
- Homepage:
- Size: 30.3 KB
- Stars: 32
- Watchers: 160
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: .github/SECURITY.md
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).