Skip to content

contributorsValidity

Enforces that the contributors property is valid.

✅ This rule is included in the package-json logical presets.

This rule checks that the contributors property is an array of objects. Each object should have at least a name, and optionally email and url. If present, email and url should be valid formats.

{
"contributors": "Example Contributor"
}

If you don’t need compliance with npm’s contributors field specification, you can disable this rule. For example, if you use a different package manager that treats the field differently, this rule may not be correct for you.

Made with ❤️‍🔥 around the world by the Flint team and contributors.