Skip to content

Available Rules

The --fix option on the command line automatically fixes problems reported by rules which have a wrench 🔧 below.
The rules with the following star ⭐ are included in the plugin:node-dependencies/recommended config.

Possible Errors

Rule IDDescription
node-dependencies/compat-enginesenforce the versions of the engines of the dependencies to be compatible.
node-dependencies/no-dupe-depsdisallow duplicate dependencies.
node-dependencies/valid-semverenforce versions that is valid as a semantic version.

Best Practices

Rule IDDescription
node-dependencies/absolute-versionrequire or disallow absolute version of dependency.
node-dependencies/no-deprecateddisallow having dependencies on deprecate packages.
node-dependencies/no-restricted-depsDisallows dependence on the specified package.

Stylistic Issues

Rule IDDescription
node-dependencies/prefer-caret-range-versionrequire caret(^) version instead of range version.🔧
node-dependencies/prefer-tilde-range-versionrequire tilde(~) version instead of range version.🔧

Deprecated

  • ⚠️ We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
  • 😇 We don't fix bugs which are in deprecated rules since we don't have enough resources.
Rule IDReplaced by
node-dependencies/valid-enginesnode-dependencies/compat-engines