Skip to content

New rule: Report un-resolvable import expressions #1415

Open
@FloEdelmann

Description

@FloEdelmann

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions