Skip to content

valid-directories

💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.

The rule checks that, if present, the directories property is an object.

Example of incorrect code for this rule:

{
"directories": true
}

Example of correct code for this rule:

{
"directories": {
"bin": "dist/bin",
"man": "docs"
}
}