From 00a16464466891f4357608ea88a27bd7f86ec2a0 Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Tue, 23 Jan 2024 14:55:27 +0700 Subject: [PATCH 1/3] add .graphqlrc.yml file --- .graphqlrc.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .graphqlrc.yml diff --git a/.graphqlrc.yml b/.graphqlrc.yml new file mode 100644 index 00000000..6079733b --- /dev/null +++ b/.graphqlrc.yml @@ -0,0 +1 @@ +schema: './node_modules/@nft/api-graphql/schema.graphql' From 8d8647d4b3bf39c23a0b71cb81cc26576356c036 Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Tue, 23 Jan 2024 15:01:10 +0700 Subject: [PATCH 2/3] fix compatibility with graphql-eslint --- .eslintrc.gql.js | 4 ---- .graphqlrc.yml | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.eslintrc.gql.js b/.eslintrc.gql.js index ea90eb02..df2ce9bf 100644 --- a/.eslintrc.gql.js +++ b/.eslintrc.gql.js @@ -1,10 +1,6 @@ module.exports = { root: true, parser: '@graphql-eslint/eslint-plugin', - parserOptions: { - schema: 'node_modules/@nft/api-graphql/schema.graphql', - operations: '**/*.gql', - }, plugins: ['@graphql-eslint/eslint-plugin'], extends: ['plugin:@graphql-eslint/operations-recommended'], rules: { diff --git a/.graphqlrc.yml b/.graphqlrc.yml index 6079733b..67482421 100644 --- a/.graphqlrc.yml +++ b/.graphqlrc.yml @@ -1 +1,2 @@ schema: './node_modules/@nft/api-graphql/schema.graphql' +documents: '{components,pages}/**/*.{graphql,gql}' From f093b67a86b9ce6fec012ec07a22f96b23e4ae77 Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Wed, 24 Jan 2024 08:50:12 +0700 Subject: [PATCH 3/3] Update .graphqlrc.yml Co-authored-by: ismail Toyran <33982052+ismailToyran@users.noreply.github.com> --- .graphqlrc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.graphqlrc.yml b/.graphqlrc.yml index 67482421..f04bf4a7 100644 --- a/.graphqlrc.yml +++ b/.graphqlrc.yml @@ -1,2 +1,2 @@ schema: './node_modules/@nft/api-graphql/schema.graphql' -documents: '{components,pages}/**/*.{graphql,gql}' +documents: '{components,hooks,pages}/**/*.{graphql,gql}'