Skip to content

duplicate-dep

Check for packages in both dependencies and devDependencies

PropertyValue
Rule IDfiles/duplicate-dep
Categoryfiles
Severity🔴 error
FixableNo

What it Checks

A package should not be in both dependencies and devDependencies. This causes confusion about whether it ships with your package.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "files/duplicate-dep"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "files/duplicate-dep": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.