Add a language
field to RuleMetadata
#2801
Labels
good first issue
Good for newcomers
S-Help-wanted
Status: you're familiar with the code base and want to help the project
@togami2864 did try to add this, however it was added as an enum, which is too specific.
We should add language as a plain static string.
Once this is done, you could update all the rules to add something like this to the macro that creates the rules:
declare_rule! { /// docs pub NoInteractiveElementToNoninteractiveRole { version: "1.3.0", name: "noInteractiveElementToNoninteractiveRole", sources: &[RuleSource::EslintJsxA11y("no-interactive-element-to-noninteractive-role")], recommended: true, fix_kind: FixKind::Unsafe, + language: "js", } }
Here's an example on how to add a new field https://github.com/biomejs/biome/pull/426/files#diff-751854fcf56fd7d9a4e543a10dc6f9916f618964ad5a1facb22a5bf1ee619852R67
The text was updated successfully, but these errors were encountered: