Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lockfile-lint.schema.json #223

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions lockfile-explorer/lockfile-lint.schema.json
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"
}
}
}
}
}
]
}
}
}
}