-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
graphql-eslint does not work with VSCode ESLint extension #1091
Comments
Hi @TimoWilhelm, can you provide a reproduction repo of your problem? This will be helpful 🙏 |
Hi @B2o5T, I created an MRE at https://github.com/TimoWilhelm/mre-graphql-eslint-vscode. To reproduce:
Otherwise you can check the ESLint output window for errors. Please let me you know if you were able to reproduce the issue or if you need anything else. Thanks in advance! |
In my repo I actually have a mix between a remote schema and client-only schema, so the linter setup in the example doesn't really make sense, I agree! There seems to be some activity about this issue @ larsgw/sync-fetch#23. |
to fix the incorrect {
"eslint.runtime": "/Users/dmytro/.nvm/versions/node/v18.16.1/bin/node"
} that I described in #1721 (comment) |
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
Rules that try to access the schema via url-loader are broken when invoked by the VSCode eslint extension.
It seems like this line in sync-fetch expects to be called by Node.js, but in my case it's the VSCode executable when invoked by the VSCode eslint extension (dbaeumer.vscode-eslint).
To Reproduce
Steps to reproduce the behavior:
This is my settings.json (I have fixAll onSave enabled):
The section from my .eslintrc.json
Expected behavior
I would expect it to work with the VSCode extension.
Environment:
@graphql-eslint/eslint-plugin
: ^3.10.4Additional context
If I invoke it with
eslint .
in the command line it works without any issues.The text was updated successfully, but these errors were encountered: