Skip to main content

private-type

Enabling this rule will result in an error being generated if the value in private is not a boolean.

Example .npmpackagejsonlintrc configuration

{
"rules": {
"private-type": "error"
}
}

Rule Details

Incorrect example(s)

{
"private": 1
}
{
"private": ["true"]
}
{
"private": "true"
}
{
"private": {
"enabled": "true"
}
}

Correct example(s)

{
"private": true
}

History

  • Introduced in version 0.1.0