UNPKG

dependency-cruiser

Version:

Visualize and validate javascript dependencies. With your rules. ES6, CommonJS, AMD

36 lines (35 loc) 857 B
{ "allowed": [{ "from": "^(src|test)", "to": "^(src|node_modules)" },{ "from": "^(src|test)", "to": "^(fs|path)$", "comment": "because these core modules make sense here" },{ "from": "^bin", "to": "^src/index\\.js" },{ "from": "^src/index\\.js", "to": "^package\\.json$" },{ "from": "^node_modules", "to": ".+" },{ "from": "^test", "to": "^test" } ], "forbidden": [{ "name": "no-dep-on-test", "level": "error", "from": "^src", "to": "^test" },{ "name": "no-external-to-here", "level": "information", "from": "node_modules", "to": "^(src|test|lib)", "comment": "you never know..." }] }