Skip to content

node-dependencies/no-dupe-deps

disallow duplicate dependencies.

  • ⚙️ This rule is included in "plugin:node-dependencies/recommended".

📖 Rule Details

This rule reports that there are duplicate dependencies on the various dependencies as error.

jsonc
/* eslint "node-dependencies/no-dupe-deps": "error" */
{
  "dependencies": {
    /* ✗ BAD */
    
"foo"
: "^1.0.0"
}, "devDependencies": { /* ✗ BAD */
"foo"
: "^1.0.0",
/* ✓ GOOD */ "bar": "^1.0.0" } }

🔧 Options

Nothing.

🚀 Version

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

🔍 Implementation