Skip to content

valid-bugs

💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.

This rule does the following checks on the value of the bugs property:

  • it’s a string URL
  • or it’s an object with either properties email or url (or both)
  • email should be a valid email address
  • url should be a valid URL

Example of incorrect code for this rule:

{
"bugs": "some@email.com"
}

Example of correct code for this rule:

{
"bugs": {
"email": "support@nin.com",
"url": "https://nin.com/support"
}
}