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.
Examples
Section titled “Examples”For a package.json located at packages/example/package.json:
{ "repository": { "directory": "example" }}{ "repository": { "directory": "packages/example" }}Related Rules
Section titled “Related Rules”valid-repository- Enforces that therepositoryproperty is valid.