Ensures that all rules available in src/rules are exported in plugin.rules. Also adds a test for plugin configs that would fail if, for example, the config enables a non-existent rule.
Is there anything you'd like reviewers to focus on?
If this looks good, I'll add similar tests to ~@eslint/markdown~ and @eslint/css. Edit: list of rules and recommended config are autogenerated in @eslint/markdown, so there's no need for tests there.
Prerequisites checklist
What is the purpose of this pull request?
Ensures that all rules available in
src/rules
are exported inplugin.rules
. Also adds a test for plugin configs that would fail if, for example, the config enables a non-existent rule.What changes did you make? (Give an overview)
Added tests.
Related Issues
https://github.com/eslint/json/pull/51
Is there anything you'd like reviewers to focus on?
If this looks good, I'll add similar tests to ~
@eslint/markdown
~ and@eslint/css
. Edit: list of rules and recommended config are autogenerated in@eslint/markdown
, so there's no need for tests there.