Skip to content

Commit ab7a2ef

Browse files
benjieacao
authored andcommitted
chore: apply prettier to more files (#1213)
* have prettier use the .eslintignore file * prettier all the things * prettify HTML too * prettier changelogs Co-authored-by: @benjie
1 parent 734b5ee commit ab7a2ef

File tree

38 files changed

+166
-862
lines changed

38 files changed

+166
-862
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ packages/graphiql/storybook
3333
packages/graphiql/lsp
3434
**/renderExample.js
3535
**/*.min.js
36+
/coverage/
3637

3738

3839
# codemirror's build artefacts are exported from the package root

CHANGELOG.md

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,144 +2,151 @@ Below is a temporary, manually maintained changelog that will eventually be cont
22

33
## GraphiQL 0.14.2 - 11 Aug, 2019
44

5-
### Fixes
6-
- Fix SSR & use of window when introducing new `extraKeys` capability (#942)
5+
### Fixes
76

7+
- Fix SSR & use of window when introducing new `extraKeys` capability (#942)
88

99
## GraphiQL 0.14.0 - 11 Aug, 2019
1010

1111
### Features
12-
- Add defaultVariableEditorOpen prop (#744) - @acao
1312

14-
### Fixes
15-
- Fix formatting of subscription errors - #636, #722 - @benjie
13+
- Add defaultVariableEditorOpen prop (#744) - @acao
14+
15+
### Fixes
16+
17+
- Fix formatting of subscription errors - #636, #722 - @benjie
1618
- preserve ctrl-f key for macOS - #759 - @pd4d10
1719
- Fix earlier 'Mode graphql failed to advance stream' on Linux by eating an exotic whitespace character - #735 closed by #932 - @benjie
1820
- Fix: check `this.editor` exists before `this.editor.off` in QueryEditor
1921

20-
2122
## Codemirror GraphQL - 0.9 - 11 Aug, 2019
2223

2324
### Chores
25+
2426
- BREAKING: Update to gls-interface and gls-parser ^2.1
2527
- BREAKING: Deprecate support for GraphQL 0.11 and below
2628
- BREAKING: introduce MIT license
2729
- BREAKING: Support GraphQL 14
2830

29-
3031
## GraphQL Language Service Server 2.1.0 - 11 Aug, 2019
3132

3233
### Features
34+
3335
- Replace babylon with @babel/parser (#879) @ganemone
3436
- Add support for gql template tags (#883) @ganemone @Neitsch
3537

3638
### Chores
37-
- BREAKING: remove incompatible dependencies on graphql 0.11 and below
39+
40+
- BREAKING: remove incompatible dependencies on graphql 0.11 and below
3841
- BREAKING: add peer support for graphql 14.x
3942
- BREAKING: change copyright to MIT
4043
- update formatting for monorepo eslint/prettier rules
4144
- update readme, badges
4245

43-
4446
## GraphQL Language Service Parser 2.1.0 - 11 Aug, 2019
4547

4648
### Fixes
47-
- Fix 'mode graphql failed to advance stream' error from shift-alt-space, etc - #932 - @benjie
4849

50+
- Fix 'mode graphql failed to advance stream' error from shift-alt-space, etc - #932 - @benjie
4951

5052
## GraphQL Language Service Interface 2.1.0 - 11 Aug, 2019
5153

5254
### Features
53-
- add __typename field suggestion against object type - (#903) @yoshiakis
55+
56+
- add \_\_typename field suggestion against object type - (#903) @yoshiakis
5457
- Update sortText logic, so that field sort is schema driven rather than alphabetically sorted - (#884) @ganenome
5558

5659
### Chores
60+
5761
- BREAKING: add peer support for graphql 14.x
5862
- MINOR BREAKING: Use MIT license
5963
- add test case for language service hover - @divyenduz @AGS-
6064

65+
## GraphQL Language Service 2.1.0
6166

62-
## GraphQL Language Service 2.1.0
6367
- BREAKING: add peer support for graphql 14.x
64-
- BREAKING: remove incompatible dependencies on graphql 0.11 and below (b/c of gls-utils 2.x)
65-
68+
- BREAKING: remove incompatible dependencies on graphql 0.11 and below (b/c of gls-utils 2.x)
6669

6770
## GraphQL Language Service Utils 2.1.0 - 11 Aug, 2019
6871

6972
### Chores
73+
7074
- BREAKING: change copyright to MIT
7175
- update formatting for monorepo eslint/prettier rules
7276
- update readme, badges
7377

74-
7578
## GraphQL Language Service Types 1.3.0 - 11 Aug, 2019
7679

7780
### Chores
81+
7882
- BREAKING: change copyright to MIT
7983
- BREAKING: add peer support for graphql 14.x
8084
- update formatting for monorepo eslint/prettier rules
8185
- update readme, badges
8286

83-
8487
## GraphiQL 0.13.2 - 21 June, 2019
8588

8689
### Features
90+
8791
- Hint/popup/etc DOM nodes use container rather than creating children of <body> - #791 - @codestryke
8892
- Add readOnly prop and pass to `QueryEditor` and `VariableEditor` - #718 - @TheSharpieOne
8993
- Add operationName to introspection query - #664 - @jbblanchet
9094
- Image Preview Functionality - #789 - @dunnbobcat @asiandrummer
9195

9296
### Fixes
97+
9398
- Destroy image hover tooltip when it isn't needed - #874 - @acao
9499
- Copy non-formatted query to avoid stripping out comments - #832 - @jaebradley
95100
- Normalizes no-break spaces - #781 - @zouxuoz
96101
- Prevents crashing on Shift-Alt-Space - #781 - @zouxuoz
97102
- Fix UI state change after favoriting a query - #747 - @benjie
98103

99104
### Chores
105+
100106
- BREAKING: Upgrade to `codemirror-graphql` 0.8.3 - #773 - @jonaskello
101107
- BREAKING: Change copyright to GraphQL Contributors, License to MIT
102108
- Netlify deployments per PR - @orta
103109
- Add unit test coverage
104110
- Switch to Jest
105111

106-
107112
## Codemirror Graphql Mode 0.8.4 - 11 Aug, 2018
113+
108114
You will now be importing async methods from gls-interface 2.0.0, thus your bundler will require regenerator runtime
109115

110116
## Chores
117+
111118
- BREAKING - Use GLS interface/parser 2.1.0 for graphql 14
112119
- BREAKING - This introduces async/await
113120

114121
## GraphQL Language Service Interface 2.0.0 - 11 Sep, 2018
115122

116123
### Chores
124+
117125
- BREAKING: upgrade internal dependencies - gls-parser, gls-types, and gls-utils to 2.0.0 - @lostplan
118126
- BREAKING: remove incompatible dependencies on graphql 0.11 and below - @lostplan
119127

120-
121128
## GraphQL Language Service Utils 2.0.0 - 11 Sep, 2018
122129

123130
### Chores
131+
124132
- BREAKING: deprecate support for graphql-js 0.11.x and below - @lostplan [graphql/graphql-language-service#256](https://github.com/graphql/graphql-language-service/pull/256) [new ref](https://github.com/graphql/graphiql/commit/895e68537fd802b8b6ddf2578a1f76f85982c773) because of [this change](https://github.com/graphql/graphiql/commit/068c57fdb4a147be3c2fc38167e2def74d217a82#diff-696ceb17e38e4a274d4a149d24513b78)
125133
- BREAKING: GraphQL 14.x support, peer dependency resolutions - #244 - @AGS-
126134

127-
128135
## GraphQL Language Service Utils 1.2.2 - 11 Sep, 2018
129136

130137
### Chores
131-
- add graphql-js 0.13 to peer deps of types package (graphql/graphql-language-service#241)
132138

139+
- add graphql-js 0.13 to peer deps of types package (graphql/graphql-language-service#241)
133140

134141
## GraphQL Language Service Server 2.0.0 - 11 Sep, 2019
135142

136143
### Chores
137-
- add graphql-js 0.13 to peer dependencies (graphql/graphql-language-service#241)
138-
- BREAKING: ugrade internal dependencies - gls-interface, gls-server and gls-utils to 2.0.0 @lostplan
139144

145+
- add graphql-js 0.13 to peer dependencies (graphql/graphql-language-service#241)
146+
- BREAKING: ugrade internal dependencies - gls-interface, gls-server and gls-utils to 2.0.0 @lostplan
140147

141148
## GraphQL Language Service 2.0.0 - 11 Sep, 2018
142149

143150
### Chores
144-
- BREAKING: ugrade internal dependencies - gls-interface, gls-server and gls-utils to 2.0.0 @Sol
145151

152+
- BREAKING: ugrade internal dependencies - gls-interface, gls-server and gls-utils to 2.0.0 @Sol

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The purpose of this monorepo is to give the GraphQL Community:
3030

3131
## [GraphiQL](packages/graphiql#readme)
3232

33+
<!-- prettier-ignore -->
3334
> [![NPM](https://img.shields.io/npm/v/graphiql.svg)](https://npmjs.com/graphiql)
3435
> ![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/graphiql)
3536
> ![npm downloads](https://img.shields.io/npm/dm/graphiql?label=npm%20downloads)

commitlint.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module.exports = {
2-
extends: [
3-
'@commitlint/config-conventional'
4-
],
2+
extends: ['@commitlint/config-conventional'],
53
};

examples/graphiql-cdn/CHANGELOG.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77

88
**Note:** Version bump only for package graphiql-example-cdn
99

10-
11-
12-
13-
1410
## [0.0.6](https://github.com/graphql/graphiql/compare/[email protected]@0.0.6) (2019-11-26)
1511

1612
**Note:** Version bump only for package graphiql-example-cdn
1713

18-
19-
20-
21-
2214
## [0.0.5](https://github.com/graphql/graphiql/compare/[email protected]@0.0.5) (2019-10-19)
2315

2416
**Note:** Version bump only for package graphiql-example-cdn

examples/graphiql-cdn/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
GraphiQL CDN Example
2-
========================
1+
# GraphiQL CDN Example
32

43
This example uses the CDN bundles to show the most simple example possible for CDN.

examples/graphiql-cdn/index.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,21 @@
5252
<script src="/renderExample.js" type="application/javascript"></script>
5353
<script>
5454
function graphQLFetcher(graphQLParams) {
55-
return fetch('https://swapi-graphql.netlify.com/.netlify/functions/index', {
56-
method: 'post',
57-
headers: {
58-
Accept: 'application/json',
59-
'Content-Type': 'application/json',
55+
return fetch(
56+
'https://swapi-graphql.netlify.com/.netlify/functions/index',
57+
{
58+
method: 'post',
59+
headers: {
60+
Accept: 'application/json',
61+
'Content-Type': 'application/json',
62+
},
63+
body: JSON.stringify(graphQLParams),
64+
credentials: 'include',
6065
},
61-
body: JSON.stringify(graphQLParams),
62-
credentials: 'include',
63-
}).then(function(response) {
64-
return response.json()
65-
.catch(function () { return response.text(); });
66+
).then(function(response) {
67+
return response.json().catch(function() {
68+
return response.text();
69+
});
6670
});
6771
}
6872

examples/graphiql-webpack/CHANGELOG.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,28 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77

88
**Note:** Version bump only for package graphiql-example-webpack
99

10-
11-
12-
13-
1410
## [0.0.9](https://github.com/graphql/graphiql/compare/[email protected]@0.0.9) (2019-12-09)
1511

1612
**Note:** Version bump only for package graphiql-example-webpack
1713

18-
19-
20-
21-
2214
## [0.0.8](https://github.com/graphql/graphiql/compare/[email protected]@0.0.8) (2019-12-09)
2315

2416
**Note:** Version bump only for package graphiql-example-webpack
2517

26-
27-
28-
29-
3018
## [0.0.7](https://github.com/graphql/graphiql/compare/[email protected]@0.0.7) (2019-12-03)
3119

32-
3320
### Bug Fixes
3421

35-
* ensure css files move with babel dist ([ca95547](https://github.com/graphql/graphiql/commit/ca95547))
36-
37-
38-
39-
22+
- ensure css files move with babel dist ([ca95547](https://github.com/graphql/graphiql/commit/ca95547))
4023

4124
## [0.0.6](https://github.com/graphql/graphiql/compare/[email protected]@0.0.6) (2019-12-03)
4225

43-
4426
### Bug Fixes
4527

46-
* convert browserify build to webpack, fixes [#976](https://github.com/graphql/graphiql/issues/976) ([#1001](https://github.com/graphql/graphiql/issues/1001)) ([3caf041](https://github.com/graphql/graphiql/commit/3caf041))
47-
48-
49-
50-
28+
- convert browserify build to webpack, fixes [#976](https://github.com/graphql/graphiql/issues/976) ([#1001](https://github.com/graphql/graphiql/issues/1001)) ([3caf041](https://github.com/graphql/graphiql/commit/3caf041))
5129

5230
## 0.0.5 (2019-11-26)
5331

54-
5532
### Bug Fixes
5633

57-
* webpack resolutions for [#882](https://github.com/graphql/graphiql/issues/882), add webpack example ([ea9df3e](https://github.com/graphql/graphiql/commit/ea9df3e))
34+
- webpack resolutions for [#882](https://github.com/graphql/graphiql/issues/882), add webpack example ([ea9df3e](https://github.com/graphql/graphiql/commit/ea9df3e))

0 commit comments

Comments
 (0)