Browse Source

validation fixes

pull/1093/head
codecalm 1 year ago
parent
commit
d907b20bdf
  1. 12
      .build/validate-icons.mjs
  2. 2
      icons/filled/bubble.svg
  3. 2
      icons/outline/monkeybar.svg

12
.build/validate-icons.mjs

@ -53,18 +53,18 @@ types.forEach(type => {
error = true
}
// check duplicates in tags
if (duplicateExists(data.tags || [])) {
console.log(`⛔️ Icon \`${iconName}\` has duplicate tags`)
error = true
}
unicodes.push(data.unicode)
} else if (argvs.hard) {
console.log(`⛔️ Icon \`${iconName}\` has no unicode`)
error = true
}
// check duplicates in tags
if (duplicateExists(data.tags || [])) {
console.log(`⛔️ Icon \`${iconName}\` has duplicate tags`)
error = true
}
if (argvs.hard && !data.version) {
console.log(`⛔️ Icon \`${iconName}\` has no version`)
error = true

2
icons/filled/bubble.svg

@ -1,6 +1,4 @@
<!--
category: Communication
tags: [comment, chat, reply, communication, conversation, faq, message, text]
-->
<svg
xmlns="http://www.w3.org/2000/svg"

2
icons/outline/monkeybar.svg

@ -1,6 +1,6 @@
<!--
category: Maps
tags: [playground, park, monkey, bar, jungle, gym, exercise, fitness, outdoor, fun, children, kids, play, swing, jungle gym, jungle gym]
tags: [playground, park, monkey, bar, jungle, gym, exercise, fitness, outdoor, fun, children, kids, play, swing, jungle gym]
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Loading…
Cancel
Save