Provides a way to ensure that the used dependencies are the preferred ones.
Assuming the rule is used with the following options:
{
"alternatives": {
"node-fetch": "axios"
}
}
**Bad**:
{
"dependencies": {
"node-fetch": "~2.6.0"
}
}
**Good**:
{
"dependencies": {
"axios": "~0.21.0"
}
}
alternatives: Record<string, string>
: An object containing the to-be replaced packages as keys, and their alternative packages as values.