Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 735 Bytes

File metadata and controls

33 lines (25 loc) · 735 Bytes

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 optionally email and url.
  • email and url, 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"
		}
	]
}