Skip to content

Commit 0a29939

Browse files
committed
fixes
1 parent 21ae1a4 commit 0a29939

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,22 @@ To get started, create an override configuration for your ESLint, while applying
5353
}
5454
```
5555

56-
If you are using code files to store your GraphQL schema or your GraphQL operations, you can extend the behaviour of ESLint and extract those, by adding the following to your setup:
56+
If you are using code files to store your GraphQL schema or your GraphQL operations, you can extend the behaviour of ESLint and extract those, by adding **an additional `override`** that does that extraction processes:
5757

5858
```json
5959
{
60-
"processor": "@graphql-eslint/graphql",
61-
"overrides": [ ... ]
60+
"overrides": [
61+
{
62+
"files": ["*.tsx", "*.ts", "*.jsx", "*.js"],
63+
"processor": "@graphql-eslint/graphql"
64+
},
65+
{
66+
"files": ["*.graphql"],
67+
"parser": "@graphql-eslint/eslint-plugin",
68+
"plugins": ["@graphql-eslint"],
69+
"rules": { ... }
70+
}
71+
]
6272
}
6373
```
6474

0 commit comments

Comments
 (0)