man-type
Enabling this rule will result in an error being generated if the value in man
is not either a string nor an object.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"man-type": "error"
}
}
Rule Details
Incorrect example(s)
{
"man": true
}
{
"man": {
"https://github.com/tclindner/npm-package-json-lint.git": true
}
}
Correct example(s)
{
"man": "./man/doc.1"
}
{
"man": [
"./man/foo.1",
"./man/bar.1"
]
}
History
- Introduced in version 0.1.0