Skip to content

valid-repository-directory

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

💡 This rule is manually fixable by editor suggestions.

This rule enforces that "repository" > "directory" points to the right directory for a package.json. If "directory" isn’t specified, this rule will do nothing.

For a package.json located at packages/example/package.json:

{
"repository": {
"directory": "example"
}
}