I'm imagining a more generic solution to 19482.
The rough idea is that we would export some data like:
type PluginName = "eslint" | "oxc" | "typescript" | "jest" | "vitest"...;
type Category = "correctness" | "restriction" | ...;
export declare const allRules: {
plugin: PluginName
rule: string
category: Category;
}[]
This way, through dynamic configs, users can manipulate the rule set, categories ect into the shape they want through standard JS.
This data would be codegen-ed.
Refs: #19482
I'm imagining a more generic solution to 19482.
The rough idea is that we would export some data like:
This way, through dynamic configs, users can manipulate the rule set, categories ect into the shape they want through standard JS.
This data would be codegen-ed.
Refs: #19482