Description
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...
- Preferred: contribute this to https://github.com/eslint-community/eslint-plugin-eslint-plugin, the standard plugin for linting ESLint plugins
- Fallback: if they don't want it there, publish this as our own standalone thing
This issue sparked by @bradzacher's comment in a Discord #help
thread on RuleTester
usage around suggestions
: https://discord.com/channels/1026804805894672454/1263283955671629914/1263373794836484207
💖