Skip to content
New issue

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

New rule: Report un-resolvable import expressions #1415

Open
FloEdelmann opened this issue Jan 25, 2023 · 1 comment
Open

New rule: Report un-resolvable import expressions #1415

FloEdelmann opened this issue Jan 25, 2023 · 1 comment
Labels
help wanted Extra attention is needed new rule

Comments

@FloEdelmann
Copy link
Contributor

I'd like to suggest a rule that reports # import expressions which point to a non-existing file:

Fail

# import Foo from 'nonExistingFile.graphql'
#                 ^^^^^^^^^^^^^^^^^^^^^^^^^ File 'nonExistingFile.graphql' does not exist.

query MyQuery {
  bar
}
# import 'nonExistingFile.graphql'
#        ^^^^^^^^^^^^^^^^^^^^^^^^^ File 'nonExistingFile.graphql' does not exist.

query MyQuery {
  bar
}

Pass

# import Foo from 'existingFile.graphql'

query MyQuery {
  bar
}
@dimaMachina
Copy link
Collaborator

Accepted

@dimaMachina dimaMachina added help wanted Extra attention is needed new rule labels Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed new rule
Development

No branches or pull requests

2 participants