valid-homepage
💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.
This rule uses package-json-validator to validate the homepage property, if present, against the following criteria:
- It must be a
string - The value should be a valid URL
Examples
Section titled “Examples”{ "homepage": "trent@nin.com"}{ "homepage": "https://nin.com"}Related Rules
Section titled “Related Rules”require-homepage- Enforces that thehomepageproperty is present.