File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ module.exports = {
30
30
} ,
31
31
] ,
32
32
messages : {
33
+ extraWhitespace : '`meta.docs.description` must not have leading nor trailing whitespace.' ,
34
+ mismatch : '`meta.docs.description` must match the regexp {{pattern}}.' ,
33
35
missing : '`meta.docs.description` is required.' ,
34
36
wrongType : '`meta.docs.description` must be a non-empty string.' ,
35
- extraWhitespace : '`meta.docs.description` must not have leading nor trailing whitespace.' ,
36
37
} ,
37
38
} ,
38
39
@@ -77,7 +78,7 @@ module.exports = {
77
78
} else if ( ! pattern . test ( staticValue . value ) ) {
78
79
context . report ( {
79
80
node : descriptionNode . value ,
80
- message : '`meta.docs.description` must match the regexp {{pattern}}. ' ,
81
+ messageId : 'mismatch ' ,
81
82
data : { pattern } ,
82
83
} ) ;
83
84
}
You can’t perform that action at this time.
0 commit comments