node-dependencies/no-deprecated
disallow having dependencies on deprecate packages.
📖 Rule Details
This rule disallows having dependencies on deprecate packages.
jsonc
/* eslint "node-dependencies/no-deprecated": "error" */
{
"dependencies": {
"@babel/eslint-parser": "^7.0.0", /* ✓ GOOD */
"babel-eslint": "^10.0.0" /* ✗ BAD: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. */
}
}
🔧 Options
json
{
"node-dependencies/no-deprecated": ["error", {
"devDependencies": false
}]
}
devDependencies
... Iftrue
, the rule also checksdevDependencies
.
🚀 Version
This rule was introduced in eslint-plugin-node-dependencies v0.2.0