-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.dependency-cruiser.cjs
More file actions
41 lines (41 loc) · 942 Bytes
/
.dependency-cruiser.cjs
File metadata and controls
41 lines (41 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
options: {
doNotFollow: {
path: "node_modules",
dependencyTypes: [
"npm",
"npm-dev",
"npm-optional",
"npm-peer",
"npm-bundled",
"npm-no-pkg",
],
},
includeOnly: "^src",
tsPreCompilationDeps: true,
tsConfig: {
fileName: "./tsconfig.json",
},
reporterOptions: {
dot: {
collapsePattern: "node_modules/[^/]+",
theme: {
graph: { rankdir: "LR" },
modules: [
{
criteria: { source: "\\.(js|ts|jsx|tsx)$" },
attributes: { shape: "box" },
},
],
dependencies: [
{
criteria: { "rules[0].severity": "error" },
attributes: { color: "red", fontcolor: "red" },
},
],
},
},
},
},
};