Skip to main content

bin-type

Enabling this rule will result in an error being generated if the value in bin is not either a string nor an object.

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{
"bin": 123
}
{
"bin": ["123"]
}

Correct example(s)

{
"bin": "src/cli.js"
}
{
"bin": {
"pjl-cli": "src/cli.js"
}
}

History

  • Introduced in version 0.1.0