Enforce sorting of keys in package.json
This commit is contained in:
parent
2950468380
commit
aeb356aa90
1 changed files with 6 additions and 0 deletions
|
@ -182,5 +182,11 @@ export default [
|
|||
ignores: ["package-lock.json"],
|
||||
language: "json/json",
|
||||
...json.configs.recommended
|
||||
},
|
||||
{
|
||||
files: ["package.json"],
|
||||
rules: {
|
||||
"json/sort-keys": ["error", "asc", { minKeys: 5 }]
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue