You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make sure the graphql-eslint version under package.json matches yours.
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
When you have a lint configuration error such as:
ESLint: 8.57.0
Error: Rule `known-fragment-names` requires `parserOptions.operations` to be set and loaded. See https://bit.ly/graphql-eslint-operations for more info
Occurred while linting /home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/packages/api/__tests__/integration/process.graphql.ts/2_document.graphql:1
Rule: "@graphql-eslint/known-fragment-names"
at requireSiblingsOperations (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/@[email protected]_patch_hash=ewoknrusd6bn2smrwwxki7qdgy_@[email protected]_dm6bygupuzqzpfwg5kzk4r6edm/node_modules/@graphql-eslint/eslint-plugin/cjs/utils.js:57:11)
at handleMissingFragments (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/@[email protected]_patch_hash=ewoknrusd6bn2smrwwxki7qdgy_@[email protected]_dm6bygupuzqzpfwg5kzk4r6edm/node_modules/@graphql-eslint/eslint-plugin/cjs/rules/graphql-js-validation.js:97:65)
at Document (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/@[email protected]_patch_hash=ewoknrusd6bn2smrwwxki7qdgy_@[email protected]_dm6bygupuzqzpfwg5kzk4r6edm/node_modules/@graphql-eslint/eslint-plugin/cjs/rules/graphql-js-validation.js:159:52)
at ruleErrorHandler (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1076:28)
at /home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
the URL https://bit.ly/graphql-eslint-operations links to https://github.com/dimaMachina/graphql-eslint#extended-linting-rules-with-siblings-operations which has no relevant information
Issue workflow progress
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
When you have a lint configuration error such as:
the URL
https://bit.ly/graphql-eslint-operations
links tohttps://github.com/dimaMachina/graphql-eslint#extended-linting-rules-with-siblings-operations
which has no relevant informationTo Reproduce Steps to reproduce the behavior:
Visit https://bit.ly/graphql-eslint-operations
Expected behavior
See documentation related to this error.
Environment:
@graphql-eslint/eslint-plugin
: 3.20.1Additional context
The text was updated successfully, but these errors were encountered: