We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e481e commit eb35605Copy full SHA for eb35605
tests/index.js
@@ -31,6 +31,16 @@ describe('configurations', function() {
31
var ruleName = configName.substring('react/'.length);
32
assert(plugin.rules[ruleName]);
33
});
34
+
35
+ ruleFiles.forEach(function(ruleName) {
36
+ var inRecommendedConfig = Boolean(plugin.configs.recommended.rules['react/' + ruleName]);
37
+ var isRecommended = plugin.rules[ruleName].meta.docs.recommended;
38
+ if (inRecommendedConfig) {
39
+ assert(isRecommended, ruleName + ' metadata should mark it as recommended');
40
+ } else {
41
+ assert(!isRecommended, ruleName + ' metadata should not mark it as recommended');
42
+ }
43
+ });
44
45
it('should export a \'all\' configuration', function() {
46
assert(plugin.configs.all);
0 commit comments