File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,18 @@ function checkMetaValidity(context, exportsNode) {
58
58
} )
59
59
return
60
60
}
61
+
62
+ const metaDocsRecommended = getPropertyFromObject (
63
+ 'recommended' ,
64
+ metaDocs . value
65
+ )
66
+ if ( metaDocsRecommended ) {
67
+ context . report ( {
68
+ node : metaDocsRecommended ,
69
+ messageId : 'invalidMetaDocsRecommended'
70
+ } )
71
+ return
72
+ }
61
73
}
62
74
63
75
module . exports = {
@@ -72,7 +84,9 @@ module.exports = {
72
84
missingMeta : 'Rule is missing a meta property.' ,
73
85
missingMetaDocs : 'Rule is missing a meta.docs property.' ,
74
86
missingMetaDocsCategories :
75
- 'Rule is missing a meta.docs.categories property.'
87
+ 'Rule is missing a meta.docs.categories property.' ,
88
+ invalidMetaDocsRecommended :
89
+ 'Rule should not have a meta.docs.recommended property.'
76
90
}
77
91
} ,
78
92
You can’t perform that action at this time.
0 commit comments