Skip to content

Commit cbb21ef

Browse files
authored
fix crash on playground page (#2756)
1 parent 855aa82 commit cbb21ef

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

website/app/play/graphql-editor.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { parser, rules } from '@graphql-eslint/eslint-plugin';
66
import Editor, { OnMount } from '@monaco-editor/react';
77
import { Anchor, Callout, InformationCircleIcon, useTheme } from '@theguild/components';
88

9-
const linter = new Linter({
10-
// requires to provide, you'll get `No matching configuration found for schema.graphql` in the browser
11-
cwd: '.',
12-
});
9+
const linter = new Linter();
1310

1411
type GraphQLEditorProps = {
1512
fileName: `${string}.graphql`;

website/content/docs/usage/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To enable these rules, you need to inform ESLint how to identify and load your c
8080
The GraphQL ESLint plugin integrates seamlessly with
8181
[GraphQL Config](https://the-guild.dev/graphql/config) which it uses to automatically load your
8282
schema. GraphQL Config supports multiple ways to specify your schema, including `.json`
83-
(introspection) file, `.graphql` files, a URL endpoint, or a raw string.
83+
(introspection result), `.graphql` files, a URL endpoint, or a raw string.
8484

8585
> This integration uses [`graphql-tools`](https://the-guild.dev/graphql/tools) under the hood to
8686
> handle the schema loading.

0 commit comments

Comments
 (0)