Skip to content

Docs: Use rule name in bug report from playground, if only one is selected #5056

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Documentation Request Please Confirm You Have Done The Following...

Suggested Changes

When opening an issue from the website, if only one TSESLint rule is enabled, it could use that rule's name instead of [rule name here]. For example, starting from this playground: https://typescript-eslint.io/play/#ts=4.7.1-rc&sourceType=module&code=DYUwLgBAbghsCuIBcECCAndMCeAeAzmOgJYB2A5gHwDcQA&rules=N4IgAgLgngDgpgZwMYCcCWMIFpEBs0B2EA9AIYoqlRbTwgBcIcFA9iiAL5A&tsConfig=N4XyA

  • Right now the Report Issue button populates the form with the title:
    Bug: [rule name here] <short description of the issue>
  • Instead, since only @typescript-eslint/array-type is enabled, it could populate with the title:
    Bug: [array-type] <short description of the issue>

Affected URL(s)

https://typescript-eslint.io/play

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestpackage: websiteIssues related to the @typescript-eslint websitewebsite: playground

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions