Replies: 5 comments 7 replies
-
turnout i find my solution there And according to here, seem |
Beta Was this translation helpful? Give feedback.
-
Sure, I will add autofix but only for cases where there are no comments between or around fields. And I'll change the order to |
Beta Was this translation helpful? Give feedback.
-
@davidNHK available in |
Beta Was this translation helpful? Give feedback.
-
Fixed in |
Beta Was this translation helpful? Give feedback.
-
I tested with my production schema now And open 1 issue (Not a big deal ) One more suggestion would Given
It only able sort the field under Z,A,C and query the input order didn't get sorted. it would perfect if input / type can sorted as well |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotansimha/graphql-eslint/blob/master/packages/plugin/src/rules/alphabetize.ts
It possible to make rules
@graphql-eslint/alphabetize
support autofix?My case was i have 2000+ line graphql schema right now. manual fix it and apply the rules is terrible tasks.
Or some online tools can help me for initial setup ?
Beta Was this translation helpful? Give feedback.
All reactions