UNPKG

dependency-cruiser

Version:

Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.

28 lines (27 loc) 1.04 kB
{ "forbidden": [{ "name": "not-to-test", "comment": "Don't allow dependencies from outside the test folder to test", "severity": "error", "from": { "pathNot": "^test" }, "to": { "path": "^test" } },{ "name": "not-to-spec", "comment": "Don't allow dependencies to (typescript or javascript) spec files", "severity": "error", "from": {}, "to": { "path": "\\.spec\\.[jt]s$" } },{ "name": "not-to-core-punycode", "comment": "Warn about dependencies on the (deprecated) 'punycode' core module (use the userland punycode module instead).", "severity": "warn", "from": {}, "to": { "coreModule": true, "path": "^punycode$" } },{ "name": "not-to-unresolvable", "comment": "Don't allow dependencies on modules dependency-cruiser can't resolve to files on disk (which probably means they don't exist)", "severity": "error", "from": {}, "to": { "couldNotResolve": true } }] }