-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathschema.json
157 lines (157 loc) · 5.06 KB
/
schema.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"description": "Files that should be completely ignored by dep-tree, typically large files or auto-generated code."
},
"only": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only files to be included by dep-tree. Files not matching these patterns will be ignored."
},
"unwrapExports": {
"type": "boolean",
"description": "Determines whether re-exports should be unwrapped to the target file."
},
"check": {
"type": "object",
"properties": {
"entrypoints": {
"type": "array",
"items": {
"type": "string"
},
"description": "The entrypoints to the application. These files act as root nodes for dependency checks."
},
"allowCircularDependencies": {
"type": "boolean",
"description": "Whether circular dependencies are allowed in the project."
},
"allow": {
"type": "object",
"patternProperties": {
".*": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "object",
"properties": {
"to": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of file patterns that the parent is allowed to depend on."
},
"reason": {
"type": "string",
"description": "The reason for this restriction to exist."
}
},
"required": ["to"]
}
]
}
},
"additionalProperties": false,
"description": "Defines allowed dependencies for files matching specific patterns, optionally with reasons."
},
"deny": {
"type": "object",
"patternProperties": {
".*": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "The file pattern to which the parent should never depend on."
},
"reason": {
"type": "string",
"description": "The reason for this restriction to exist."
}
},
"required": ["to"]
}
}
]
}
},
"additionalProperties": false,
"description": "Defines forbidden dependencies for files matching specific patterns, optionally with reasons."
},
"aliases": {
"type": "object",
"patternProperties": {
".*": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"description": "Defines aliases for groups of files that are commonly depended upon, such as helpers or utilities."
}
},
"required": [],
"description": "Configuration for dependency checks, including allowed and forbidden dependencies, entrypoints, and aliases."
},
"js": {
"type": "object",
"properties": {
"workspaces": {
"type": "boolean",
"description": "Whether to account for package.json workspaces when resolving paths."
},
"tsConfigPaths": {
"type": "boolean",
"description": "Whether to follow TypeScript tsconfig.json paths for module resolution."
}
},
"additionalProperties": false,
"description": "Settings specific to JavaScript and TypeScript projects."
},
"python": {
"type": "object",
"properties": {
"excludeConditionalImports": {
"type": "boolean",
"description": "Whether to consider conditional imports as dependencies."
}
},
"additionalProperties": false,
"description": "Settings specific to Python projects."
},
"rust": {
"type": "object",
"additionalProperties": false,
"description": "Settings specific to Rust projects (currently none available)."
}
},
"required": [],
"additionalProperties": false,
"description": "Schema for dep-tree configuration files, used to manage and validate project dependencies."
}