valid-contributors
💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule does the following checks on the value of the contributors property:
- It must be an array of objects.
- Each object should have at least a
name, and optionallyemailandurl. emailandurl, if present, should be valid email and url formats.
Example of incorrect code for this rule:
{ "contributors": "Trent Reznor"}Example of correct code for this rule:
{ "contributors": [ { "name": "Trent Reznor", "email": "treznor@nin.com", "url": "https://nin.com" } ]}