Use sort-package-json to keep your keys in a predictable order.
This rule aims to enforce sorting.
Examples of incorrect code for this rule:
{
"name": "foo",
"version": "1.0.0"
}
Examples of correct code for this rule:
{
"version": "1.0.0",
"name": "foo"
}
Same as https://github.com/keithamus/sort-package-json.
If you don't like the defaults of sort-package-json
, you may not want this rule.