Skip to content

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 ... If true, the rule also checks devDependencies.

🚀 Version

This rule was introduced in eslint-plugin-node-dependencies v0.2.0

🔍 Implementation