Skip to content

Commit

Permalink
Prepare test project for import-js/eslint-plugin-import#2258
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Göhr committed Oct 13, 2021
0 parents commit be45580
Show file tree
Hide file tree
Showing 6 changed files with 4,897 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,11 @@
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:import/recommended
parserOptions:
ecmaVersion: 13
sourceType: module
rules:
import/no-cycle: [2, { ignoreExternal: true }]
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
/node_modules/
/.idea/
23 changes: 23 additions & 0 deletions index.js
@@ -0,0 +1,23 @@
import {
ApolloClient,
InMemoryCache,
gql
} from "@apollo/client";


const client = new ApolloClient({
uri: 'https://48p1r2roz4.sse.codesandbox.io',
cache: new InMemoryCache()
});

client
.query({
query: gql`
query GetRates {
rates(currency: "USD") {
currency
}
}
`
})
.then(result => console.log(result));

0 comments on commit be45580

Please sign in to comment.