Skip to content

manValidity

Enforces that the man property is valid.

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

This rule checks that the man property is a string or an array of strings. The string(s) must end with a number (and optionally .gz).

{
"man": ["./man/doc.md"]
}

If you don’t need compliance with npm’s main 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.

  • manPresence - Enforces that the man property is present.
Made with ❤️‍🔥 around the world by the Flint team and contributors.