File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
examples/multiple-projects-graphql-config Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- import type { IGraphQLConfig } from 'graphql-config' ;
2- import type { GraphQLTagPluckOptions } from '@graphql-tools/graphql-tag-pluck' ;
1+ import type { IGraphQLConfig , GraphQLTagPluckOptions } from '@graphql-eslint/eslint-plugin' ;
32
43const config : IGraphQLConfig = {
54 projects : {
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import { processor } from './processor.js';
44import { rules } from './rules/index.js' ;
55
66export * from './types.js' ;
7+ export type { IGraphQLConfig } from 'graphql-config' ;
8+ export type { GraphQLTagPluckOptions } from '@graphql-tools/graphql-tag-pluck' ;
9+
710export { requireGraphQLSchemaFromContext , requireSiblingsOperations } from './utils.js' ;
811
912export const processors = { graphql : processor } ;
Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ export const ClientPage: FC<{
103103 placeholder = "Choose an operation rule"
104104 />
105105 </ div >
106- { /*<Button className="mt-auto">Download this config</Button>*/ }
107106 </ div >
108107 < GraphQLEditor
109108 height = "calc(50% - 17px)"
@@ -116,6 +115,7 @@ export const ClientPage: FC<{
116115 ...( schemaConfig && configs [ `flat/${ schemaConfig } ` ] . rules ) ,
117116 ...( schemaRule && {
118117 [ `@graphql-eslint/${ schemaRule } ` ] :
118+ // @ts -expect-error -- TODO: fix type error
119119 configs [ 'flat/schema-all' ] . rules [ `@graphql-eslint/${ schemaRule } ` ] ,
120120 } ) ,
121121 } }
@@ -132,6 +132,7 @@ export const ClientPage: FC<{
132132 ...( operationConfig && configs [ `flat/${ operationConfig } ` ] . rules ) ,
133133 ...( operationRule && {
134134 [ `@graphql-eslint/${ operationRule } ` ] :
135+ // @ts -expect-error -- TODO: fix type error
135136 configs [ 'flat/operations-all' ] . rules [ `@graphql-eslint/${ operationRule } ` ] ,
136137 } ) ,
137138 } }
You can’t perform that action at this time.
0 commit comments