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
stringURL - or it’s an
objectwith either propertiesemailorurl(or both) emailshould be a valid email addressurlshould 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" }}