manValidity
Enforces that the
manproperty 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).
Examples
Section titled “Examples”{ "man": ["./man/doc.md"]}{ "man": ["./man/doc.1", "./man/doc.2"]}{ "man": "./man/doc.1"}When Not To Use It
Section titled “When Not To Use It”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.
Related Rules
Section titled “Related Rules”- manPresence - Enforces that the
manproperty is present.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
package-json/valid-man
Made with ❤️🔥 around the world by
the Flint team and contributors.