npm dependency-cruiser 1.14.0

latest releases: 16.4.2, 16.4.1, 16.4.0...
7 years ago
  • 🐣 Adds a --init-rules option. This creates a .dependency-cruiser.json with some useful rules in it to the current folder and exits. See below for the 'starter kit' rules.
  • 📖 improves the intro text of the --info option a bit
  • 👷 tell bithound it's ok that we do have typescript and coffee-script in our dependencies, but nowhere in a direct require or import - as we're using a different construct there

The rules:

Rule Description
not-to-test Don't allow dependencies from outside the test folder to test
not-to-spec Don't allow dependencies to (typescript/ javascript/ coffeescript) spec files
no-deprecated-core Warn about dependencies on deprecated core modules.
not-to-unresolvable Don't allow dependencies on modules dependency-cruiser can't resolve to files on disk (which probably means they don't exist)
not-to-dev-dep Don't allow dependencies from src/app/lib to a development only package
no-non-package-json Don't allow dependencies to packages not in package.json (except from within node_modules)
optional-deps-used Inform about the use of dependencies labeled as 'optional' (so you can ensure their imports a are sufficiently managed)
peer-deps-used Warn about the use of a peer dependency (peer dependencies are deprecated with the advent of npm 3 - and probably gone with version 4).
no-duplicate-dep-types Warn if a dependency occurs in your package.json more than once (technically: has more than one dependency type)

Don't miss a new dependency-cruiser release

NewReleases is sending notifications on new releases.