Prettier config used at GitHub
Перейти к файлу
Keith Cirkel 6fd8c17dd4
Merge pull request #22 from github/jumoel/cleanup-packagejson
chore: Clean up `package.json`
2022-12-06 13:36:35 +00:00
.devcontainer Add a .devcontainer 2022-02-28 17:05:13 +00:00
.github Publish package to GHPR 2022-12-02 12:54:53 +00:00
examples update snapshot tests 2022-12-01 11:08:19 +00:00
.gitignore add tests 2022-12-01 10:28:40 +00:00
CODEOWNERS add codeowners 2022-11-30 16:53:12 +00:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-03-18 16:08:56 +00:00
LICENSE Create LICENSE 2020-03-12 14:43:56 +00:00
README.md Create README.md 2020-03-12 14:10:26 +00:00
index.js set trailing commas to all 2022-12-01 10:06:26 +00:00
package-lock.json add tests 2022-12-01 10:28:40 +00:00
package.json chore: remove postpublish in scripts in favor of explicit workflow 2022-12-06 13:45:30 +01:00

README.md

prettier-config

Prettier config used at GitHub

Usage

Install the package using npm (or yarn)

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

Add the prettier key to your package.json

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.