File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import { compileMdx , MDXRemote } from ' @theguild/components/server'
22
33export async function GraphqlConfigInfo({ name , configKey = name }) {
4- const rawMdx = `
5- > [!NOTE]
4+ const rawMdx = ` > [!NOTE]
65>
76> If you have a
87> [GraphQL Config configuration file](https://the-guild.dev/graphql/config/docs/user/usage) in your
98> project, the GraphQL-ESLint parser will automatically use it to load your GraphQL ${name }.
109>
11- > You should specify a \` ${configKey }\` key in the GraphQL Config configuration file to load your GraphQL ${name }.
10+ > You should specify a \` ${configKey }\` key in the GraphQL Config configuration file to load your
11+ > GraphQL ${name }.
1212>
1313> Alternatively, you can pass GraphQL Config options programmatically via
1414> \` languageOptions.parserOptions.graphQLConfig\` in your \` eslint.config.js\` file. `
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ Example of providing GraphQL operations:
175175
176176<Tabs items = { [' GraphQL Config' , ' Programmatic Usage' ]} >
177177<Tabs.Tab >
178+
178179``` js filename="graphql.config.js"
179180export default {
180181 // a path to a local `.graphql` file
@@ -187,6 +188,7 @@ export default {
187188 documents: [' ./src/users.graphql' , ' ./src/posts.graphql' , ' ./src/user-fields.graphql' ]
188189}
189190```
191+
190192</Tabs.Tab >
191193
192194<Tabs.Tab >
You can’t perform that action at this time.
0 commit comments