Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Repo: Share @typescript-eslint/internal/plugin-test-formatting in something public #9639

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

For a while now, we've had an internal lint rule for test formatting which enforces things like "a template string must be either indented 0 or indented template indent + 2" and "all cases must be prettier formatted" (https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin-internal/src/rules/plugin-test-formatting.ts). This is really useful for keeping rule test code clean and readable.

This also isn't really specific to typescript-eslint. I could see a use case for any arbitrary plugin to want it.

Proposal: let's either...

This issue sparked by @bradzacher's comment in a Discord #help thread on RuleTester usage around suggestions: https://discord.com/channels/1026804805894672454/1263283955671629914/1263373794836484207

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    repo maintenancethings to do with maintenance of the repo, and not with code/docsteam assignedA member of the typescript-eslint team should work on this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions