We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to suggest a rule that reports # import expressions that are not used in the current file:
# import
# import Foo from 'someOtherFile.graphql' # ^^^ Fragment 'Foo' not used in this file, import expression can be removed. query MyQuery { bar }
# import 'someOtherFile.graphql' query MyQuery { fooField }
# import Foo from 'someOtherFile.graphql' query MyQuery { fooField { ...Foo } }
# import 'someOtherFile.graphql' # assuming it defines a `Foo` fragment query MyQuery { fooField { ...Foo } }
The text was updated successfully, but these errors were encountered:
Accepted
Sorry, something went wrong.
require-import-fragment
No branches or pull requests
I'd like to suggest a rule that reports
# import
expressions that are not used in the current file:Fail
Pass
The text was updated successfully, but these errors were encountered: