Prettier config used at GitHub
Перейти к файлу
Keith Cirkel f61aae0af4
set trailing commas to all
2022-12-01 10:06:26 +00:00
.devcontainer Add a .devcontainer 2022-02-28 17:05:13 +00:00
.github Create .github/workflows/publish.yml 2022-03-25 15:53:42 +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 package-lock 2022-11-30 16:52:22 +00:00
package.json 0.0.4 2020-03-25 11:23:08 +00: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.