ESLint rule to allow for multiple severities to be used for no-restricted-imports
npm install eslint-plugin-no-restricted-imports-clone.eslintrc.js file:
'no-restricted-imports-clone to the plugins array.
rules object:
'no-restricted-imports': [
'error',
{
name: 'someDependency',
message: "Don't import someDependency.",
},
],
'no-restricted-imports-clone/no-restricted-imports-clone': [
'warn',
{
name: 'anotherDependency',
message: "You are encouraged to not import anotherDependency.",
},
],
``