Open waynezhang1995 opened 2 months ago
Similar issue for us, but with documents
. getSourceCode()
doesn't seem to help either. Sprinkled some console.log
s, and looks like the wrong graphql.config.*
is being loaded/used. It's a monorepo and we have more than one, and one of them doesn't have documents
, because there aren't any in that particular package, only schemas.
Appears to happen only via LSP (in VSCode), not CLI.
Issue workflow progress
We are on
@graphql-eslint/eslint-plugin@4.0.0-alpha.0
.This is our
eslintrc
.graphqlrc.yml
the above error is coming from
and interestingly, if we change
context.sourceCode
tocontext.getSourceCode()
everything starts working normally.Appreciate any helps. Thanks
Progress of the issue based on the Contributor Workflow
[ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
[ ] 2. A failing test has been provided
[ ] 3. A local solution has been provided
[ ] 4. A pull request is pending review
Describe the bug
To Reproduce Steps to reproduce the behavior:
Expected behavior
Environment:
@graphql-eslint/eslint-plugin
:Additional context