eslint / json

JSON language plugin for ESLint
Apache License 2.0
46 stars 4 forks source link

test: Ensure all rules are exported #53

Closed mdjermanovic closed 2 weeks ago

mdjermanovic commented 2 weeks ago

Prerequisites checklist

What is the purpose of this pull request?

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.

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.