prefer-alphabetical-devDependencies
Enabling this rule will result in an error being generated if the dependencies in devDependencies
are not in alphabetical order.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"prefer-alphabetical-devDependencies": "error"
}
}
Rule Details
Incorrect example(s)
{
"devDependencies": {
"semver": "^5.3.0",
"chalk": "^1.1.3",
"user-home": "^2.0.0"
}
}
Correct example(s)
{
"devDependencies": {
"chalk": "^1.1.3",
"semver": "^5.3.0",
"user-home": "^2.0.0"
}
}
History
- Introduced in version 2.3.0