graphql-eslint icon indicating copy to clipboard operation
graphql-eslint copied to clipboard

Please clarify that the graphql-config has precedence over options like ParserOptions.operations

Open therealgilles opened this issue 2 years ago • 1 comments

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • [ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

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 The documentation does not make it clear that an option like documents in a graphql config is equivalent to ParserOptions.operations and takes precedence over it. Please kindly document equivalence and precedence behavior.

therealgilles avatar Jun 17 '22 07:06 therealgilles

Thanks, would you want send a PR to this change? Also, in next major (v4) field parserOptions.operations will be renamed to parserOptions.documents to make consistency with graphql-config

dimaMachina avatar Jun 17 '22 10:06 dimaMachina