Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: VSCode Integration; Enable lint highlighting #2857

Open
SStranks opened this issue Dec 14, 2024 · 1 comment
Open

Documentation: VSCode Integration; Enable lint highlighting #2857

SStranks opened this issue Dec 14, 2024 · 1 comment

Comments

@SStranks
Copy link

Is your feature request related to a problem? Please describe.

Inadequate Documentation: VSCode Integration Page: VSCode Integration

Describe the solution you'd like

An additional statement about VSCode integration. While the vscode-graphql extensions are necessary for validation and syntax highlighting, they do not enable lint highlighting for graphql files - the @graphql-eslint/eslint-plugin functions correctly if running eslint from the CLI, and highlights linting in js/ts based files.

To enable visible linting in graphql files, you have to add the following to the VSCode settings:
"eslint.validate": ["graphql"]

I had to track down this thread to find the solution to the problem as it's not documented anywhere: Support Probing for graphql files

Given the plugin is about linting I feel the aforementioned vscode setting should be displayed on the documentation page as a note.

@dimaMachina
Copy link
Collaborator

feel free submit pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants