eslint-plugin-eslint-plugin
eslint-plugin-eslint-plugin copied to clipboard
Rule: require tests for rules
trafficstars
Requires a rule file to have tests. Can be configured with a location of the tests.
/* eslint eslint-plugin/require-rule-tests: ["error", {"testPath": "../../tests/lib/rules/"}]
If the file at ../../tests/lib/rules/${__filename} exists (relative to rule file), an error is reported.
similar to tests, should also require docs?
Seems reasonable. The reason I'm not sure about whether this rule is a good idea is because it seems like adding tests for a feature isn't necessarily something specific to ESLint plugins, so it might not be in scope for this plugin.