valid-bugs
ðž This rule is enabled in the â
recommended config.
This rule uses package-json-validator to validate the bugs property, if present, against the following criteria:
- It must be either a
stringor anobject - If itâs a
string, it should be a valid URL - If itâs an
object, it should have eitheremailorurl(or both) emailshould be a valid email addressurlshould be a valid URL
Examples
Section titled âExamplesâ{}{ "bugs": { "url": "https://nin.com/support" }}Related Rules
Section titled âRelated Rulesârequire-bugs- Enforces that thebugsproperty is present.