Skip to content

Commit

Permalink
chore: apply prettier to more files (graphql#1213)
Browse files Browse the repository at this point in the history
* have prettier use the .eslintignore file
* prettier all the things
* prettify HTML too
* prettier changelogs

Co-authored-by: @benjie
  • Loading branch information
benjie authored and acao committed Jan 12, 2020
1 parent 734b5ee commit ab7a2ef
Show file tree
Hide file tree
Showing 38 changed files with 166 additions and 862 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ packages/graphiql/storybook
packages/graphiql/lsp
**/renderExample.js
**/*.min.js
/coverage/


# codemirror's build artefacts are exported from the package root
Expand Down
53 changes: 30 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,144 +2,151 @@ Below is a temporary, manually maintained changelog that will eventually be cont

## GraphiQL 0.14.2 - 11 Aug, 2019

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

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

## GraphiQL 0.14.0 - 11 Aug, 2019

### Features
- Add defaultVariableEditorOpen prop (#744) - @acao

### Fixes
- Fix formatting of subscription errors - #636, #722 - @benjie
- Add defaultVariableEditorOpen prop (#744) - @acao

### Fixes

- Fix formatting of subscription errors - #636, #722 - @benjie
- preserve ctrl-f key for macOS - #759 - @pd4d10
- Fix earlier 'Mode graphql failed to advance stream' on Linux by eating an exotic whitespace character - #735 closed by #932 - @benjie
- Fix: check `this.editor` exists before `this.editor.off` in QueryEditor


## Codemirror GraphQL - 0.9 - 11 Aug, 2019

### Chores

- BREAKING: Update to gls-interface and gls-parser ^2.1
- BREAKING: Deprecate support for GraphQL 0.11 and below
- BREAKING: introduce MIT license
- BREAKING: Support GraphQL 14


## GraphQL Language Service Server 2.1.0 - 11 Aug, 2019

### Features

- Replace babylon with @babel/parser (#879) @ganemone
- Add support for gql template tags (#883) @ganemone @Neitsch

### Chores
- BREAKING: remove incompatible dependencies on graphql 0.11 and below

- BREAKING: remove incompatible dependencies on graphql 0.11 and below
- BREAKING: add peer support for graphql 14.x
- BREAKING: change copyright to MIT
- update formatting for monorepo eslint/prettier rules
- update readme, badges


## GraphQL Language Service Parser 2.1.0 - 11 Aug, 2019

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

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

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

### Features
- add __typename field suggestion against object type - (#903) @yoshiakis

- add \_\_typename field suggestion against object type - (#903) @yoshiakis
- Update sortText logic, so that field sort is schema driven rather than alphabetically sorted - (#884) @ganenome

### Chores

- BREAKING: add peer support for graphql 14.x
- MINOR BREAKING: Use MIT license
- add test case for language service hover - @divyenduz @AGS-

## GraphQL Language Service 2.1.0

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

- BREAKING: remove incompatible dependencies on graphql 0.11 and below (b/c of gls-utils 2.x)

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

### Chores

- BREAKING: change copyright to MIT
- update formatting for monorepo eslint/prettier rules
- update readme, badges


## GraphQL Language Service Types 1.3.0 - 11 Aug, 2019

### Chores

- BREAKING: change copyright to MIT
- BREAKING: add peer support for graphql 14.x
- update formatting for monorepo eslint/prettier rules
- update readme, badges


## GraphiQL 0.13.2 - 21 June, 2019

### Features

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

### Fixes

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

### Chores

- BREAKING: Upgrade to `codemirror-graphql` 0.8.3 - #773 - @jonaskello
- BREAKING: Change copyright to GraphQL Contributors, License to MIT
- Netlify deployments per PR - @orta
- Add unit test coverage
- Switch to Jest


## Codemirror Graphql Mode 0.8.4 - 11 Aug, 2018

You will now be importing async methods from gls-interface 2.0.0, thus your bundler will require regenerator runtime

## Chores

- BREAKING - Use GLS interface/parser 2.1.0 for graphql 14
- BREAKING - This introduces async/await

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

### Chores

- BREAKING: upgrade internal dependencies - gls-parser, gls-types, and gls-utils to 2.0.0 - @lostplan
- BREAKING: remove incompatible dependencies on graphql 0.11 and below - @lostplan


## GraphQL Language Service Utils 2.0.0 - 11 Sep, 2018

### Chores

- 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)
- BREAKING: GraphQL 14.x support, peer dependency resolutions - #244 - @AGS-


## GraphQL Language Service Utils 1.2.2 - 11 Sep, 2018

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

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

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

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

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

## GraphQL Language Service 2.0.0 - 11 Sep, 2018

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

- BREAKING: ugrade internal dependencies - gls-interface, gls-server and gls-utils to 2.0.0 @Sol
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The purpose of this monorepo is to give the GraphQL Community:

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

<!-- prettier-ignore -->
> [![NPM](https://img.shields.io/npm/v/graphiql.svg)](https://npmjs.com/graphiql)
> ![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/graphiql)
> ![npm downloads](https://img.shields.io/npm/dm/graphiql?label=npm%20downloads)
Expand Down
4 changes: 1 addition & 3 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
extends: [
'@commitlint/config-conventional'
],
extends: ['@commitlint/config-conventional'],
};
8 changes: 0 additions & 8 deletions examples/graphiql-cdn/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

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





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

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





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

**Note:** Version bump only for package graphiql-example-cdn
3 changes: 1 addition & 2 deletions examples/graphiql-cdn/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
GraphiQL CDN Example
========================
# GraphiQL CDN Example

This example uses the CDN bundles to show the most simple example possible for CDN.
24 changes: 14 additions & 10 deletions examples/graphiql-cdn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,21 @@
<script src="/renderExample.js" type="application/javascript"></script>
<script>
function graphQLFetcher(graphQLParams) {
return fetch('https://swapi-graphql.netlify.com/.netlify/functions/index', {
method: 'post',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
return fetch(
'https://swapi-graphql.netlify.com/.netlify/functions/index',
{
method: 'post',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify(graphQLParams),
credentials: 'include',
},
body: JSON.stringify(graphQLParams),
credentials: 'include',
}).then(function(response) {
return response.json()
.catch(function () { return response.text(); });
).then(function(response) {
return response.json().catch(function() {
return response.text();
});
});
}

Expand Down
29 changes: 3 additions & 26 deletions examples/graphiql-webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,28 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

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





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

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





## [0.0.8](https://github.com/graphql/graphiql/compare/[email protected]@0.0.8) (2019-12-09)

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





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


### Bug Fixes

* ensure css files move with babel dist ([ca95547](https://github.com/graphql/graphiql/commit/ca95547))




- ensure css files move with babel dist ([ca95547](https://github.com/graphql/graphiql/commit/ca95547))

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


### Bug Fixes

* 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))




- 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))

## 0.0.5 (2019-11-26)


### Bug Fixes

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

0 comments on commit ab7a2ef

Please sign in to comment.