.dependency-cruiser.json 1.6 KB

12345678910111213141516171819202122232425
  1. {
  2. "forbidden": [{
  3. "name": "no-circular",
  4. "severity": "warn",
  5. "comment": "Warn in case there's circular dependencies",
  6. "from": {},
  7. "to": { "circular": true }
  8. }],
  9. "options": {
  10. "doNotFollow": "node_modules", /* pattern specifying which files not to follow further when encountered*/
  11. "tsConfig": { /* Typescript project file ('tsconfig.json') to use for (1) compilation and (2) resolution (e.g. with the paths property) */
  12. "fileName": "./tsconfig.json" /* The typescript project file to use. The fileName is relative to dependency-cruiser's current working directory. When not provided defaults to './tsconfig.json'.*/
  13. },
  14. "webpackConfig": { /* Webpack configuration to use to get resolve options from */
  15. "fileName": "./webpack.config.js"
  16. }
  17. }
  18. }
  19. // "exclude" : "", /* pattern specifying which files to exclude (regular expression) */
  20. // "moduleSystems": ["amd", "cjs", "es6", "tsd"],/* list of module systems to cruise */
  21. // "prefix": "", /* prefix for links in html and svg output (e.g. https://github.com/you/yourrepo/blob/develop/) */
  22. // "tsPreCompilationDeps": false, /* if true detect dependencies that only exist before typescript-to-javascript compilation */
  23. // "preserveSymlinks": false, /* if true leave symlinks untouched, otherwise use the realpath */