Skip to content

no-unreachable-types rule does not consider wrapped request directive argument types #1937

@keijokapp

Description

@keijokapp

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

  • 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

    For example, you can start off by editng the
    'basic' example on Stackblitz.

    Please make sure the graphql-eslint version under package.json matches yours.

  • 2. A failing test has been provided

  • 3. A local solution has been provided

  • 4. A pull request is pending review


no-unreachable-types rule does not consider wrapped request directive argument types (ie non-null and list types). It skips wrapped types (due to missing name) instead of trying to resolve the name.

The fix, including the test, is at keijokapp@e2d9153

Environment:

  • OS: Linux
  • @graphql-eslint/eslint-plugin: 3.20.1, 4.0.0-alpha.0, master (e854103)
  • Node.js: v20.8.0

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