Permalink
Browse files

Enable TS allowSyntheticDefaultImports / esModuleInterop

  • Loading branch information...
hwillson committed Aug 22, 2018
1 parent 3a16a88 commit 9a96519d390783dfd9a431dc2dbaa476a24f7b80
Showing with 110 additions and 285 deletions.
  1. +1 −1 dangerfile.ts
  2. +2 −2 examples/base/src/__tests__/App.js
  3. +1 −1 examples/typescript/src/App.tsx
  4. +1 −1 examples/typescript/src/Character.tsx
  5. +0 −187 examples/typescript/src/__tests__/Character.tsx
  6. +1 −1 examples/typescript/src/index.tsx
  7. +2 −2 src/ApolloConsumer.tsx
  8. +2 −2 src/ApolloProvider.tsx
  9. +2 −2 src/Mutation.tsx
  10. +2 −2 src/Query.tsx
  11. +2 −2 src/Subscriptions.tsx
  12. +1 −1 src/getDataFromTree.ts
  13. +1 −2 src/graphql.tsx
  14. +1 −1 src/hoc-utils.tsx
  15. +1 −1 src/mutation-hoc.tsx
  16. +1 −1 src/query-hoc.tsx
  17. +1 −1 src/renderToStringWithData.ts
  18. +1 −1 src/subscription-hoc.tsx
  19. +1 −1 src/test-utils.tsx
  20. +1 −1 src/withApollo.tsx
  21. +1 −1 test/client/ApolloConsumer.test.tsx
  22. +3 −3 test/client/ApolloProvider.test.tsx
  23. +1 −1 test/client/Mutation.test.tsx
  24. +1 −1 test/client/Query.test.tsx
  25. +1 −1 test/client/Subscription.test.tsx
  26. +10 −10 test/client/getDataFromTree.test.tsx
  27. +2 −2 test/client/graphql/client-option.test.tsx
  28. +2 −2 test/client/graphql/fragments.test.tsx
  29. +2 −2 test/client/graphql/mutations/index.test.tsx
  30. +2 −2 test/client/graphql/mutations/lifecycle.test.tsx
  31. +2 −2 test/client/graphql/mutations/queries.test.tsx
  32. +2 −2 test/client/graphql/mutations/recycled-queries.test.tsx
  33. +7 −5 test/client/graphql/queries/api.test.tsx
  34. +5 −3 test/client/graphql/queries/errors.test.tsx
  35. +3 −3 test/client/graphql/queries/index.test.tsx
  36. +2 −2 test/client/graphql/queries/lifecycle.test.tsx
  37. +3 −3 test/client/graphql/queries/loading.test.tsx
  38. +2 −2 test/client/graphql/queries/observableQuery.test.tsx
  39. +2 −2 test/client/graphql/queries/polling.test.tsx
  40. +2 −2 test/client/graphql/queries/reducer.test.tsx
  41. +2 −2 test/client/graphql/queries/skip.test.tsx
  42. +2 −2 test/client/graphql/queries/updateQuery.test.tsx
  43. +3 −3 test/client/graphql/shared-operations.test.tsx
  44. +1 −1 test/client/graphql/statics.test.tsx
  45. +2 −2 test/client/graphql/subscriptions.test.tsx
  46. +9 −3 test/flow-usage.js
  47. +4 −2 test/server/server.test.tsx
  48. +2 −2 test/test-utils.test.tsx
  49. +1 −1 test/test-utils/enzyme.ts
  50. +1 −1 test/typescript-usage.tsx
  51. +3 −2 tsconfig.json
@@ -1,6 +1,6 @@
// Removed import
import includes from 'lodash/includes';
import * as fs from 'fs';
import fs from 'fs';

// Setup
const pr = danger.github.pr;
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as renderer from 'react-test-renderer';
import React from 'react';
import renderer from 'react-test-renderer';
import { MockedProvider } from 'react-apollo/test-utils';

import { HERO_QUERY, withCharacter, CharacterWithoutData, App } from '../App';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import Character from './Character';
import { Episode } from './__generated__/types';

@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import { GetCharacterQuery, GetCharacterQueryVariables, Episode } from './__generated__/types';
import { GetCharacter as QUERY } from './queries';
import { Query } from 'react-apollo';

This file was deleted.

Oops, something went wrong.
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import { render } from 'react-dom';
import { ApolloClient } from 'apollo-client';
import { createHttpLink } from 'apollo-link-http';
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import ApolloClient from 'apollo-client';

const invariant = require('invariant');
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import { Component } from 'react';
import ApolloClient from 'apollo-client';
import { DocumentNode } from 'graphql';
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import ApolloClient, { PureQueryOptions, ApolloError } from 'apollo-client';
import { DataProxy } from 'apollo-cache';
const invariant = require('invariant');
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import ApolloClient, {
ObservableQuery,
ApolloError,
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import ApolloClient, { ApolloError } from 'apollo-client';
import { Observable } from 'apollo-link';

@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';

export interface Context {
[key: string]: any;
@@ -1,5 +1,4 @@
// pacify typescript (we have to turn off no unused locals though :cry:)
import * as React from 'react';
import React from 'react';
import { DocumentNode } from 'graphql';
import { parser, DocumentType } from './parser';
import { OperationOption, DataProps, MutateProps } from './types';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
const invariant = require('invariant');

import { OperationVariables } from './types';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import { DocumentNode } from 'graphql';
const hoistNonReactStatics = require('hoist-non-react-statics');

@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import { ApolloError } from 'apollo-client';
import { DocumentNode } from 'graphql';
const hoistNonReactStatics = require('hoist-non-react-statics');
@@ -1,5 +1,5 @@
import { ReactElement } from 'react';
import * as ReactDOM from 'react-dom/server';
import ReactDOM from 'react-dom/server';

import { default as getDataFromTree } from './getDataFromTree';

@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import { DocumentNode } from 'graphql';
const hoistNonReactStatics = require('hoist-non-react-statics');

@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import ApolloClient from 'apollo-client';
import { DefaultOptions } from 'apollo-client/ApolloClient';
import { InMemoryCache as Cache } from 'apollo-cache-inmemory';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import { OperationOption } from './types';
import ApolloConsumer from './ApolloConsumer';
import { ApolloClient } from 'apollo-client';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import ApolloClient from 'apollo-client';
import { InMemoryCache as Cache } from 'apollo-cache-inmemory';
import { ApolloLink } from 'apollo-link';
@@ -1,7 +1,7 @@
import * as React from 'react';
import * as PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import { shallow } from 'enzyme';
import * as TestUtils from 'react-dom/test-utils';
import TestUtils from 'react-dom/test-utils';
import ApolloClient from 'apollo-client';
import { InMemoryCache as Cache } from 'apollo-cache-inmemory';
import { ApolloLink } from 'apollo-link';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import { mount } from 'enzyme';
import gql from 'graphql-tag';
import { ApolloClient } from 'apollo-client';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import ApolloClient, { ApolloError, NetworkStatus } from 'apollo-client';
import { mount, ReactWrapper } from 'enzyme';
import { InMemoryCache as Cache } from 'apollo-cache-inmemory';
@@ -1,4 +1,4 @@
import * as React from 'react';
import React from 'react';
import gql from 'graphql-tag';
import { mount, ReactWrapper } from 'enzyme';

Oops, something went wrong.

0 comments on commit 9a96519

Please sign in to comment.