forked from ReactiveX/rxjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dependency-cruiser.json
95 lines (95 loc) · 2.42 KB
/
.dependency-cruiser.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"forbidden": [
{
"name": "not-to-spec",
"comment": "Don't allow dependencies from outside the spec folder to spec",
"severity": "error",
"from": {
"pathNot": "^spec"
},
"to": {
"path": "^spec"
}
},
{
"name": "not-to-spec",
"comment": "Don't allow dependencies to (typescript/ javascript/ coffeescript) spec files",
"severity": "error",
"from": {},
"to": {
"path": "\\.spec\\.[js|ts|ls|coffee|litcoffee|coffee\\.md]$"
}
},
{
"name": "no-deprecated-core",
"comment": "Warn about dependencies on deprecated core modules.",
"severity": "warn",
"from": {},
"to": {
"dependencyTypes": ["core"],
"path": "^(punycode|domain)$"
}
},
{
"name": "no-deprecated-npm",
"comment": "These npm modules are deprecated - find an alternative.",
"severity": "warn",
"from": {},
"to": {
"dependencyTypes": ["deprecated"]
}
},
{
"name": "not-to-dev-dep",
"severity": "error",
"comment": "Don't allow dependencies from src/app/lib to a development only package",
"from": {
"path": "^(src|app|lib)"
},
"to": {
"dependencyTypes": ["npm-dev"]
}
},
{
"name": "no-non-package-json",
"severity": "error",
"comment": "Don't allow dependencies to packages not in package.json (except from within node_modules)",
"from": {
"pathNot": "^node_modules"
},
"to": {
"dependencyTypes": ["undetermined", "npm-no-pkg", "npm-unknown"],
"pathNot": "^electron"
}
},
{
"name": "peer-deps-used",
"comment": "Error about the use of a peer dependency (peer dependencies are deprecated).",
"severity": "error",
"from": {},
"to": {
"dependencyTypes": ["npm-peer"]
}
},
{
"name": "no-duplicate-dep-types",
"comment": "Warn if a dependency occurs in your package.json more than once (technically: has more than one dependency type)",
"severity": "warn",
"from": {},
"to": {
"moreThanOneDependencyType": true
}
},
{
"name": "no-circular",
"severity": "error",
"comment": "Error in case we have circular dependencies",
"from": {
"path": "^dist/esm"
},
"to": {
"circular": true
}
}
]
}