Skip to content

Instantly share code, notes, and snippets.

@vjeux
Created May 6, 2017 19:50
Show Gist options
  • Save vjeux/b96de2e8f196e558b8c9dd0feb82430b to your computer and use it in GitHub Desktop.
Save vjeux/b96de2e8f196e558b8c9dd0feb82430b to your computer and use it in GitHub Desktop.
(592) >> find ../apollo-client/ -name '*.ts' | xargs bin/prettier.js --parser typescript --debug-check
../apollo-client//benchmark/index.ts
../apollo-client//benchmark/util.ts
../apollo-client//fetch-mock.typings.d.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -27,5 +27,5 @@
* an exact url to match e.g. 'http:www.site.com/page.html'
* if the string begins with a `^`, the string following the `^` must
- begin the url e.g. '^http://www.site.com' would match
+ begin the url e.g. '^http:www.site.com' would match
'http://www.site.com' or 'http://www.site.com/page.html'
* '*' to match any url
../apollo-client//src/actions.ts
../apollo-client//src/ApolloClient.ts
../apollo-client//src/core/ObservableQuery.ts
../apollo-client//src/core/QueryManager.ts
../apollo-client//src/core/QueryManager.ts: SyntaxError: Identifier expected. (349:36)
347 |
348 | delete this.queryDocuments[mutationId];
> 349 | resolve(<ApolloQueryResult<T>>result);
| ^
350 | })
351 | .catch((err) => {
352 | this.store.dispatch({
../apollo-client//src/core/types.ts
../apollo-client//src/core/watchQueryOptions.ts
../apollo-client//src/data/debug.ts
../apollo-client//src/data/fragmentMatcher.ts
../apollo-client//src/data/fragmentMatcher.ts: Error: Comment location overlaps with node location
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:115:11)
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:91:7)
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:91:7)
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:91:7)
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:91:7)
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:91:7)
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:91:7)
at decorateComment (/Users/vjeux/random/prettier/src/comments.js:91:7)
at comments.forEach (/Users/vjeux/random/prettier/src/comments.js:135:5)
at Array.forEach (native)
../apollo-client//src/data/fragmentMatcherIntrospectionQuery.ts
../apollo-client//src/data/mutationResults.ts
../apollo-client//src/data/proxy.ts
../apollo-client//src/data/readFromStore.ts
../apollo-client//src/data/replaceQueryResults.ts
../apollo-client//src/data/resultReducers.ts
../apollo-client//src/data/store.ts
../apollo-client//src/data/storeUtils.ts
../apollo-client//src/data/writeToStore.ts
../apollo-client//src/errors/ApolloError.ts
../apollo-client//src/index.ts
../apollo-client//src/mutations/store.ts
../apollo-client//src/optimistic-data/store.ts
../apollo-client//src/queries/directives.ts
../apollo-client//src/queries/getFromAST.ts
../apollo-client//src/queries/networkStatus.ts
../apollo-client//src/queries/queryTransform.ts
../apollo-client//src/queries/store.ts
../apollo-client//src/scheduler/scheduler.ts
../apollo-client//src/store.ts
../apollo-client//src/transport/afterware.ts
../apollo-client//src/transport/batchedNetworkInterface.ts
../apollo-client//src/transport/batching.ts
../apollo-client//src/transport/Deduplicator.ts
../apollo-client//src/transport/middleware.ts
../apollo-client//src/transport/networkInterface.ts
../apollo-client//src/util/assign.ts
../apollo-client//src/util/cloneDeep.ts
../apollo-client//src/util/environment.ts
../apollo-client//src/util/errorHandling.ts
../apollo-client//src/util/isEqual.ts
../apollo-client//src/util/maybeDeepFreeze.ts
../apollo-client//src/util/Observable.ts
../apollo-client//src/util/Observable.ts: SyntaxError: '}' expected. (14:10)
12 |
13 | export class Observable<T> {
> 14 | private subscriberFunction: SubscriberFunction<T>;
| ^
15 |
16 | constructor(subscriberFunction: SubscriberFunction<T>) {
17 | this.subscriberFunction = subscriberFunction;
../apollo-client//src/util/warnOnce.ts
../apollo-client//src/version.ts
../apollo-client//test/ApolloClient.ts
../apollo-client//test/assign.ts
../apollo-client//test/batchedNetworkInterface.ts
../apollo-client//test/batching.ts
../apollo-client//test/client.ts
../apollo-client//test/cloneDeep.ts
../apollo-client//test/customResolvers.ts
../apollo-client//test/deduplicator.ts
../apollo-client//test/diffAgainstStore.ts
../apollo-client//test/directives.ts
../apollo-client//test/environment.ts
../apollo-client//test/errors.ts
../apollo-client//test/fetchMore.ts
../apollo-client//test/fixtures/redux-todomvc/actions.ts
../apollo-client//test/fixtures/redux-todomvc/index.ts
../apollo-client//test/fixtures/redux-todomvc/reducers.ts
../apollo-client//test/fixtures/redux-todomvc/types.ts
../apollo-client//test/fragmentMatcher.ts
../apollo-client//test/getFromAST.ts
../apollo-client//test/graphqlSubscriptions.ts
../apollo-client//test/isEqual.ts
../apollo-client//test/mockNetworkInterface.ts
../apollo-client//test/mocks/mockFetch.ts
../apollo-client//test/mocks/mockNetworkInterface.ts
../apollo-client//test/mocks/mockQueryManager.ts
../apollo-client//test/mocks/mockWatchQuery.ts
../apollo-client//test/mutationResults.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -729,5 +729,5 @@
it('runs multiple reducers', () => {
- // TODO This test has sometimes failed on CI in the past, but I cannot reproduce it locally.
+ TODO This test has sometimes failed on CI in the past, but I cannot reproduce it locally.
// Could be some sort of race condition. Commenting it out for now, but this should be fixed.
//
../apollo-client//test/networkInterface.ts
../apollo-client//test/networkInterface.ts: SyntaxError: Expression expected. (271:6)
269 |
270 | it('should alter the request body params', () => {
> 271 | const testWare1 = TestWare([], [], [
| ^
272 | { key: 'newParam', val: '0123456789' },
273 | ]);
274 |
../apollo-client//test/ObservableQuery.ts
../apollo-client//test/optimistic.ts
../apollo-client//test/proxy.ts
../apollo-client//test/QueryManager.ts
../apollo-client//test/queryTransform.ts
../apollo-client//test/readFromStore.ts
../apollo-client//test/roundtrip.ts
../apollo-client//test/scheduler.ts
../apollo-client//test/scheduler.ts: SyntaxError: Expression expected. (336:4)
334 |
335 | it('should add multiple queries to an interval correctly', () => {
> 336 | const query1 = gql`
| ^
337 | query {
338 | fortuneCookie
339 | }`;
../apollo-client//test/store.ts
../apollo-client//test/subscribeToMore.ts
../apollo-client//test/tests.ts
../apollo-client//test/util/observableToPromise.ts
../apollo-client//test/util/subscribeAndCount.ts
../apollo-client//test/util/wrap.ts
../apollo-client//test/warnOnce.ts
../apollo-client//test/writeToStore.ts
../apollo-client//typings.d.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment