Skip to content

Incorrect behaviour with operations in .js/.ts files #515

@mikew

Description

@mikew

Describe the bug
The @graphql-eslint/unique-fragment-name, @graphql-eslint/unique-operation-name, and @graphql-eslint/known-fragment-names rules seem to incorrectly report errors when operations are defined in .js/.ts files.

To Reproduce
Steps to reproduce the behavior:

https://github.com/mikew/graphql-eslint-woes

Expected behavior
There should be no issues in the repo above.

Environment:

  • OS: macOS
  • @graphql-eslint/...: latest
  • NodeJS: 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBug :-(stage/5-alpha-release-testingThe pull request is merged, an alpha release is available, to be tested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions