dimaMachina / graphql-eslint

ESLint parser, plugin and set rules for GraphQL (for schema and operations). Easily customizable with custom rules. Integrates with IDEs and modern GraphQL tools.
https://the-guild.dev/graphql/eslint
MIT License
778 stars 102 forks source link

bit.ly links broken? #2312

Open benjie opened 1 month ago

benjie commented 1 month ago

Issue workflow progress

Progress of the issue based on the Contributor Workflow


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/@graphql-eslint+eslint-plugin@3.20.1_patch_hash=ewoknrusd6bn2smrwwxki7qdgy_@babel+core@7.24.5_dm6bygupuzqzpfwg5kzk4r6edm/node_modules/@graphql-eslint/eslint-plugin/cjs/utils.js:57:11)
    at handleMissingFragments (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/@graphql-eslint+eslint-plugin@3.20.1_patch_hash=ewoknrusd6bn2smrwwxki7qdgy_@babel+core@7.24.5_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/@graphql-eslint+eslint-plugin@3.20.1_patch_hash=ewoknrusd6bn2smrwwxki7qdgy_@babel+core@7.24.5_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/eslint@8.57.0/node_modules/eslint/lib/linter/linter.js:1076:28)
    at /home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/eslint@8.57.0/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/eslint@8.57.0/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/home/benjie/Dev/gosteelhead/steelhead-deploy/gosteelhead/node_modules/.pnpm/eslint@8.57.0/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

To Reproduce Steps to reproduce the behavior:

Visit https://bit.ly/graphql-eslint-operations

Expected behavior

See documentation related to this error.

Environment:

Additional context