Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 634 Bytes

valid-local-dependency.md

File metadata and controls

30 lines (22 loc) · 634 Bytes

valid-local-dependency

💼 This rule is enabled in the ✅ recommended config.

Rule Details

This rule validates the path for file: and link: dependencies in a package.json file - including name casing. If a link: or file: path is incorrect yarn does not sub out the link when releasing.

Examples of incorrect code for this rule (when ../folder is the correct path):

{
	"devDependencies": {
		"some-package": "link:../Folder"
	}
}

Examples of correct code for this rule:

{
	"devDependencies": {
		"some-package": "link:../folder"
	}
}