Enforce sorting of keys in package.json

This commit is contained in:
Tom Hughes 2025-03-09 14:36:28 +00:00
parent 2950468380
commit aeb356aa90

View file

@ -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 }]
}
}
];