Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 578 Bytes

pkg-dependency-order.md

File metadata and controls

49 lines (40 loc) · 578 Bytes

Enforces alphabetical order of dependencies and devDependencies in package.json

Enforces an alphabetical order of the dependencies and devDependencies list in package.json.

Fail

{
  "name": "foo",
  "dependencies": {
    "pify": "*",
    "clinton": "*"
  }
}
{
  "name": "foo",
  "devDependencies": {
    "xo": "*",
    "ava": "*"
  }
}

Pass

{
  "name": "foo",
  "dependencies": {
    "clinton": "*",
    "pify": "*"
  }
}
{
  "name": "foo",
  "devDependencies": {
    "ava": "*",
    "xo": "*"
  }
}