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

Enforce `require-selections` on `FragmentSpread`s within `GraphQLUnionType`s #2319

Open maciesielka opened 1 month ago

maciesielka commented 1 month ago

Description

Enforces require-selections on FragmentSpreads within GraphQLUnionTypes, like it already does for InlineFragments

Fixes #2318

Type of change

Please delete options that are not relevant.

(Technically this can cause new violations in existing codebases, but I'd consider this to be missing functionality and thus a bug more than a new feature).

How Has This Been Tested?

Added a unit test that describes and reproduces the issue well.

Checklist:

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 11ebcef86d5bf06cb3c495725973b4e510c82ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------------------- | ----- | | @graphql-eslint/eslint-plugin | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

maciesielka commented 2 weeks ago

@dimaMachina any guidance for how to get this reviewed?