Sometimes you may accidentally commit a temporary branch of a dependency instead of a version.
This rule aims to prevent branches instead of versions.
Examples of incorrect code for this rule:
{
"dependencies": {
"lodash": "lodash/lodash"
}
}Examples of correct code for this rule:
{
"dependencies": {
"lodash": "^4.17.11"
}
}"keys": ["dependencies", "devDependencies", "optionalDependencies"]alter the dependency keys checked"ignore": []add certain dependencies to the ignore list
If you use long-lived branches as part of your normal workflow, you may not want this rule.