Skip to content

Commit 160221c

Browse files
authored
Update README on the VSCode integration (#491)
- add the need of having a GraphQL IDE extension - remove the need of `eslint.options` config
1 parent 85d842e commit 160221c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,11 @@ In order to enable it processing other extensions, add the following section in
140140
```json
141141
{
142142
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "graphql"],
143-
"eslint.options": {
144-
"extentions": [".js", ".graphql"]
145-
}
146143
}
147144
```
148145

146+
Currently, you also need a GraphQL IDE extension for syntax highlighting installed (which may potentially have its own linting) - for example [GraphQL (by GraphQL Foundation)](https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql).
147+
149148
### Disabling Rules
150149

151150
The `graphql-eslint` parser looks for GraphQL comments syntax (marked with `#`) and will send it to ESLint as directives. That means, you can use ESLint directives syntax to hint ESLint, just like in any other type of files.

0 commit comments

Comments
 (0)