Skip to content

Commit

Permalink
Format the spec with prettier (graphql#727)
Browse files Browse the repository at this point in the history
* Formatting: add prettier

* Format markdown
  • Loading branch information
benjie authored Jan 6, 2022
1 parent c18590c commit 7908822
Show file tree
Hide file tree
Showing 20 changed files with 2,365 additions and 2,259 deletions.
13 changes: 9 additions & 4 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

Before creating your issue:

* Have a question? Find community resources at https://graphql.org/community/
- Have a question? Find community resources at https://graphql.org/community/

* Find an editing mistake? Create a Pull Request with the edited fix! The Github UI allows you to edit files directly, find the source files at: https://github.com/graphql/graphql-spec/tree/master/spec
- Find an editing mistake? Create a Pull Request with the edited fix! The Github
UI allows you to edit files directly, find the source files at:
https://github.com/graphql/graphql-spec/tree/master/spec

* Improvements to documentation? Head over to https://github.com/graphql/graphql.github.io
- Improvements to documentation? Head over to
https://github.com/graphql/graphql.github.io

* Feature request? First read https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md and prefer creating a Pull Request!
- Feature request? First read
https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md and prefer
creating a Pull Request!
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!!! IMPORTANT !!!

Please Read https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md before creating a Pull Request.
Please Read https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md
before creating a Pull Request.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: "16.x"
- run: npm ci
- run: npm test
publish:
Expand All @@ -26,13 +26,13 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: "16.x"
- run: npm ci
- run: npm run build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
cname: spec.graphql.org
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
12 changes: 12 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Prettier formatting
on: [push, pull_request]

jobs:
build:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: npm ci
- run: npm run format:check
11 changes: 11 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.swp
*~
.*.haste_cache.*
.DS_Store
npm-debug.log
/build
/changelogs
/out
/gh-pages
/node_modules
/package.json
238 changes: 115 additions & 123 deletions CONTRIBUTING.md

Large diffs are not rendered by default.

Loading

0 comments on commit 7908822

Please sign in to comment.