Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 802 Bytes

valid-repository-directory.md

File metadata and controls

32 lines (23 loc) · 802 Bytes

valid-repository-directory

💼 This rule is enabled in the ✅ recommended config.

💡 This rule is manually fixable by editor suggestions.

Rule Details

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.

Example of incorrect code for this rule for a package.json located at packages/example/package.json:

{
	"repository": {
		"directory": "something-else"
	}
}

Example of correct code for this rule for a package.json located at packages/example/package.json:

{
	"repository": {
		"directory": "packages/example"
	}
}