Skip to content

Commit 528684f

Browse files
authored
Merge pull request #223 from microsoft/octogonz/lfx
Add lockfile-lint.schema.json
2 parents 2c2f8fa + 22cf2fc commit 528684f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Lockfile Lint Configuration",
4+
"description": "The lockfile-explorer.json configuration file for lockfile-lint tool.",
5+
"type": "object",
6+
"additionalProperties": false,
7+
"properties": {
8+
"$schema": {
9+
"description": "Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
10+
"type": "string"
11+
},
12+
"rules": {
13+
"description": "The rules adopted by Monorepo and the lockfile-lint will help to check.",
14+
"type": "array",
15+
"items": {
16+
"type": "object",
17+
"oneOf": [
18+
{
19+
"type": "object",
20+
"required": ["rule", "project", "requiredVersions"],
21+
"properties": {
22+
"rule": {
23+
"description": "Rule name applied to the project.",
24+
"const": "restrict-versions"
25+
},
26+
"project": {
27+
"description": "Project name.",
28+
"type": "string"
29+
},
30+
"requiredVersions": {
31+
"description": "List of restrict dependency version.",
32+
"type": "object",
33+
"patternProperties": {
34+
".*": {
35+
"type": "string"
36+
}
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)