-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from microsoft/octogonz/lfx
Add lockfile-lint.schema.json
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Lockfile Lint Configuration", | ||
"description": "The lockfile-explorer.json configuration file for lockfile-lint tool.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"$schema": { | ||
"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.", | ||
"type": "string" | ||
}, | ||
"rules": { | ||
"description": "The rules adopted by Monorepo and the lockfile-lint will help to check.", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"required": ["rule", "project", "requiredVersions"], | ||
"properties": { | ||
"rule": { | ||
"description": "Rule name applied to the project.", | ||
"const": "restrict-versions" | ||
}, | ||
"project": { | ||
"description": "Project name.", | ||
"type": "string" | ||
}, | ||
"requiredVersions": { | ||
"description": "List of restrict dependency version.", | ||
"type": "object", | ||
"patternProperties": { | ||
".*": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |