Skip to content

Playground config/selected rule resets on source change #2939

@Netail

Description

@Netail

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 editing 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


Describe the bug

Playground schema/rule selection resets after source file change

To Reproduce Steps to reproduce the behavior:

  1. Go to https://the-guild.dev/graphql/eslint/play
  2. Select a different schema/operation config or specific rule
  3. Change something in the source files

Seems to reset the changes of step 2.

Also, when changing the source and then setting a config/rule, it lints based on the original default source

Expected behavior

Selected schema/operation config or specific rule should be maintained

Environment:

  • OS: MacOS
  • @graphql-eslint/eslint-plugin: -
  • Node.js: -

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions