Open yoavsion opened 4 months ago
Latest commit: b3d0b6f988766c227a522a0102d660d6e20a7c4f
The changes in this PR will be included in the next version bump.
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
Description
Adds a group type to the
groups
property of thealphabetize
rule indicating where fragment spreads should be in a selection set.Similarly to the
'*'
group, which stands for "everything else," the'...'
stands for "all fragment spreads."Fixes #2291
Type of change
How Has This Been Tested?
Added the following unit tests, ran
yarn test
and verified that the error messages match the expected ones:...
is at the start...
is between...
is at the endChecklist:
Further comments
When working on this change, the display name for a fragment spread was showing
undefined <fragment name>
, which was because there was no name mapping for thatKind
— so I went ahead and added display names for allKind
values, and sorted the map.