Skip to content

Commit 7908822

Browse files
authored
Format the spec with prettier (graphql#727)
* Formatting: add prettier * Format markdown
1 parent c18590c commit 7908822

20 files changed

+2365
-2259
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
Before creating your issue:
44

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

7-
* 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
7+
- Find an editing mistake? Create a Pull Request with the edited fix! The Github
8+
UI allows you to edit files directly, find the source files at:
9+
https://github.com/graphql/graphql-spec/tree/master/spec
810

9-
* Improvements to documentation? Head over to https://github.com/graphql/graphql.github.io
11+
- Improvements to documentation? Head over to
12+
https://github.com/graphql/graphql.github.io
1013

11-
* Feature request? First read https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md and prefer creating a Pull Request!
14+
- Feature request? First read
15+
https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md and prefer
16+
creating a Pull Request!

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
!!! IMPORTANT !!!
22

3-
Please Read https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md before creating a Pull Request.
3+
Please Read https://github.com/graphql/graphql-spec/blob/master/CONTRIBUTING.md
4+
before creating a Pull Request.

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v1
1515
with:
16-
node-version: '16.x'
16+
node-version: "16.x"
1717
- run: npm ci
1818
- run: npm test
1919
publish:
@@ -26,13 +26,13 @@ jobs:
2626
fetch-depth: 0
2727
- uses: actions/setup-node@v1
2828
with:
29-
node-version: '16.x'
29+
node-version: "16.x"
3030
- run: npm ci
3131
- run: npm run build
3232
- uses: peaceiris/actions-gh-pages@v3
3333
with:
3434
github_token: ${{ secrets.GITHUB_TOKEN }}
3535
keep_files: true
3636
cname: spec.graphql.org
37-
user_name: 'github-actions[bot]'
38-
user_email: 'github-actions[bot]@users.noreply.github.com'
37+
user_name: "github-actions[bot]"
38+
user_email: "github-actions[bot]@users.noreply.github.com"

.github/workflows/prettier.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Prettier formatting
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-node@v1
9+
with:
10+
node-version: "16.x"
11+
- run: npm ci
12+
- run: npm run format:check

.prettierignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.swp
2+
*~
3+
.*.haste_cache.*
4+
.DS_Store
5+
npm-debug.log
6+
/build
7+
/changelogs
8+
/out
9+
/gh-pages
10+
/node_modules
11+
/package.json

CONTRIBUTING.md

Lines changed: 115 additions & 123 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)