Replies: 1 comment 5 replies
-
It works for definitions declared in code files, here are example https://github.com/B2o5T/graphql-eslint/tree/master/examples/code-file |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to use the
no-unused-fragments
eslint rule when using fragments for typing as espoused in this article by the Guild?We use codegen with fragments as described in the article but as our usage of fragments has grown we wanted to use the eslint rule to check that we're not leaving orphaned fragments that are no longer needed.
Unfortunately, the rule doesn't seem to detect fragments that are used in code and so it errors for every fragment used in this way.
I read the docs and did a bunch of searching and couldn't find anyone in a similar position, so wanted to ask!
Beta Was this translation helpful? Give feedback.
All reactions