Don’t import gql from @apollo/client.

See https://github.com/gajus/babel-plugin-graphql-tag/issues/41 .
This commit is contained in:
Jayden Seric 2020-07-20 14:53:28 +10:00
parent aec5a2c6fa
commit 9c199e0dc7
6 changed files with 16 additions and 5 deletions

View File

@ -1,6 +1,12 @@
{
"extends": ["env"],
"rules": {
"react/prop-types": "off"
"react/prop-types": "off",
"node/no-unpublished-import": [
"error",
{
"allowModules": ["graphql-tag"]
}
]
}
}

View File

@ -1,5 +1,6 @@
import { gql, useApolloClient, useMutation } from '@apollo/client';
import { useApolloClient, useMutation } from '@apollo/client';
import { ButtonSubmit, Code, Fieldset, Textbox } from 'device-agnostic-ui';
import gql from 'graphql-tag';
import React from 'react';
const SINGLE_UPLOAD_MUTATION = gql`

View File

@ -1,4 +1,5 @@
import { gql, useApolloClient, useMutation } from '@apollo/client';
import { useApolloClient, useMutation } from '@apollo/client';
import gql from 'graphql-tag';
const SINGLE_UPLOAD_MUTATION = gql`
mutation singleUpload($file: Upload!) {

View File

@ -1,4 +1,5 @@
import { gql, useApolloClient, useMutation } from '@apollo/client';
import { useApolloClient, useMutation } from '@apollo/client';
import gql from 'graphql-tag';
const MULTIPLE_UPLOAD_MUTATION = gql`
mutation multipleUpload($files: [Upload!]!) {

View File

@ -1,5 +1,6 @@
import { gql, useQuery } from '@apollo/client';
import { useQuery } from '@apollo/client';
import { Scroll, Table } from 'device-agnostic-ui';
import gql from 'graphql-tag';
const UPLOADS_QUERY = gql`
query uploads {

View File

@ -32,6 +32,7 @@
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.8",
"graphql-tag": "^2.10.4",
"prettier": "^2.0.5"
},
"scripts": {