Enforces the following order in author
, maintainers
and contributors
objects in package.json
.
name
email
url
{
"name": "foo",
"author": {
"email": "[email protected]",
"name": "Sam Verschueren",
"url": "github.com/SamVerschueren"
}
}
{
"name": "foo",
"maintainers": [
{
"name": "Sam Verschueren",
"url": "github.com/SamVerschueren",
"email": "[email protected]"
}
]
}
{
"name": "foo",
"contributors": [
{
"url": "github.com/SamVerschueren",
"name": "Sam Verschueren",
"email": "[email protected]"
}
]
}
{
"name": "foo",
"author": {
"name": "Sam Verschueren",
"email": "[email protected]",
"url": "github.com/SamVerschueren"
}
}
{
"name": "foo",
"maintainers": [
{
"name": "Sam Verschueren",
"email": "[email protected]",
"url": "github.com/SamVerschueren"
}
]
}
{
"name": "foo",
"contributors": [
{
"name": "Sam Verschueren",
"email": "[email protected]",
"url": "github.com/SamVerschueren"
}
]
}
You can set a custom order as well.
"pkg-user-order": ["error", "email", "name", "url"]