Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 719 Bytes

unique-dependencies.md

File metadata and controls

32 lines (24 loc) · 719 Bytes

unique-dependencies

💼 This rule is enabled in the ✅ recommended config.

💡 This rule is manually fixable by editor suggestions.

This rule checks that every dependency is just added once to a package.json key specifying dependencies.

Example of incorrect code for this rule:

{
	"dependencies": {
		"foo": "1.0.0"
	},
	"devDependencies": {
		"foo": "1.0.0"
	}
}

Example of correct code for this rule:

{
	"dependencies": {
		"foo": "1.0.0"
	}
}