Skip to content

Enhancement(rule docs): add a quick-link that allows you to open a rule in the playground #6085

Closed
@bradzacher

Description

@bradzacher

Suggestion

One thing I find myself doing a lot is testing specific rules out in the playground.
Right now I have to manually open the playground and type in the config.

It would be great if we could do the following:

  • Add a link to open the playground with the default config for the rule (eg "@typescript-eslint/rule-name": "error")
  • Add a link to each examples to allow you to open them in the playground with the right config.

I think this would vastly lower the barrier to understanding and allow users to quickly verify behaviour. Eg "the docs say this, but does it cover this?" click link on example and enter new code to play around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuedocumentationDocumentation ("docs") that needs adding/updatingenhancementNew feature or requestwebsite: playground

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions