diff --git a/app/.eslintrc.json b/app/.eslintrc.json index a0cec9a..216de14 100644 --- a/app/.eslintrc.json +++ b/app/.eslintrc.json @@ -1,12 +1,6 @@ { "extends": ["env"], "rules": { - "react/prop-types": "off", - "node/no-unpublished-import": [ - "error", - { - "allowModules": ["graphql-tag"] - } - ] + "react/prop-types": "off" } } diff --git a/app/components/UploadBlob.js b/app/components/UploadBlob.js index 031fd95..1ce46f4 100644 --- a/app/components/UploadBlob.js +++ b/app/components/UploadBlob.js @@ -1,6 +1,5 @@ -import { useApolloClient, useMutation } from '@apollo/client'; +import { gql, 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` diff --git a/app/components/UploadFile.js b/app/components/UploadFile.js index 285e39c..bcbaa0d 100644 --- a/app/components/UploadFile.js +++ b/app/components/UploadFile.js @@ -1,5 +1,4 @@ -import { useApolloClient, useMutation } from '@apollo/client'; -import gql from 'graphql-tag'; +import { gql, useApolloClient, useMutation } from '@apollo/client'; const SINGLE_UPLOAD_MUTATION = gql` mutation singleUpload($file: Upload!) { diff --git a/app/components/UploadFileList.js b/app/components/UploadFileList.js index d36d86d..4c4364c 100644 --- a/app/components/UploadFileList.js +++ b/app/components/UploadFileList.js @@ -1,5 +1,4 @@ -import { useApolloClient, useMutation } from '@apollo/client'; -import gql from 'graphql-tag'; +import { gql, useApolloClient, useMutation } from '@apollo/client'; const MULTIPLE_UPLOAD_MUTATION = gql` mutation multipleUpload($files: [Upload!]!) { diff --git a/app/components/Uploads.js b/app/components/Uploads.js index 56141d3..7617ad8 100644 --- a/app/components/Uploads.js +++ b/app/components/Uploads.js @@ -1,6 +1,5 @@ -import { useQuery } from '@apollo/client'; +import { gql, useQuery } from '@apollo/client'; import { Scroll, Table } from 'device-agnostic-ui'; -import gql from 'graphql-tag'; const UPLOADS_QUERY = gql` query uploads { diff --git a/app/package.json b/app/package.json index 922fe6b..a27fa8c 100644 --- a/app/package.json +++ b/app/package.json @@ -32,7 +32,6 @@ "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.6", "eslint-plugin-react-hooks": "^4.1.1", - "graphql-tag": "^2.11.0", "prettier": "^2.1.1" }, "scripts": {