We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b874fa commit 8ed5414Copy full SHA for 8ed5414
lib/frontmatter-linter.js
@@ -29,7 +29,9 @@ module.exports = class FrontmatterLinter {
29
required: true,
30
conform: function (value) {
31
const result = value?.every((item) => teams.includes(item));
32
- // we need to warn like this because revalidator doesn't allow custom messages
+ // we need to warn like this because revalidator doesn't allow you to use specific
33
+ // context in custom messages. i.e. it will tell you that there an unmatched team
34
+ // but it won't tell you which one is the offending team.
35
if (!result) {
36
console.warn(`Invalid team in ${value}. Available teams: ${teams}`);
37
}
0 commit comments