Skip to main content

directories-type

Enabling this rule will result in an error being generated if the value in directories is not an object.

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{
"directories": 1
}
{
"directories": ["bin", "./bin"]
}
{
"directories": "bin: ./bin"
}

Correct example(s)

{
"directories": {
"bin": "./bin"
}
}

History

  • Introduced in version 0.1.0