We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
messageId
require-meta-docs-description
1 parent c10afb8 commit b0b170eCopy full SHA for b0b170e
lib/rules/require-meta-docs-description.js
@@ -30,9 +30,10 @@ module.exports = {
30
},
31
],
32
messages: {
33
+ extraWhitespace: '`meta.docs.description` must not have leading nor trailing whitespace.',
34
+ mismatch: '`meta.docs.description` must match the regexp {{pattern}}.',
35
missing: '`meta.docs.description` is required.',
36
wrongType: '`meta.docs.description` must be a non-empty string.',
- extraWhitespace: '`meta.docs.description` must not have leading nor trailing whitespace.',
37
38
39
@@ -77,7 +78,7 @@ module.exports = {
77
78
} else if (!pattern.test(staticValue.value)) {
79
context.report({
80
node: descriptionNode.value,
- message: '`meta.docs.description` must match the regexp {{pattern}}.',
81
+ messageId: 'mismatch',
82
data: { pattern },
83
});
84
}
0 commit comments