summaryrefslogtreecommitdiff
path: root/cli/schemas
diff options
context:
space:
mode:
authorhaturau <135221985+haturatu@users.noreply.github.com>2024-11-20 01:20:47 +0900
committerGitHub <noreply@github.com>2024-11-20 01:20:47 +0900
commit85719a67e59c7aa45bead26e4942d7df8b1b42d4 (patch)
treeface0aecaac53e93ce2f23b53c48859bcf1a36ec /cli/schemas
parent67697bc2e4a62a9670699fd18ad0dd8efc5bd955 (diff)
parent186b52731c6bb326c4d32905c5e732d082e83465 (diff)
Merge branch 'denoland:main' into main
Diffstat (limited to 'cli/schemas')
-rw-r--r--cli/schemas/config-file.v1.json38
1 files changed, 33 insertions, 5 deletions
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index af18e6f21..3ba803ef8 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -291,7 +291,7 @@
"type": "array",
"description": "List of tag names that will be run. Empty list disables all tags and will only use rules from `include`.",
"items": {
- "type": "string"
+ "$ref": "https://raw.githubusercontent.com/denoland/deno_lint/main/schemas/tags.v1.json"
},
"minItems": 0,
"uniqueItems": true
@@ -300,7 +300,7 @@
"type": "array",
"description": "List of rule names that will be excluded from configured tag sets. If the same rule is in `include` it will be run.",
"items": {
- "type": "string"
+ "$ref": "https://raw.githubusercontent.com/denoland/deno_lint/main/schemas/rules.v1.json"
},
"minItems": 0,
"uniqueItems": true
@@ -309,7 +309,7 @@
"type": "array",
"description": "List of rule names that will be run. Even if the same rule is in `exclude` it will be run.",
"items": {
- "type": "string"
+ "$ref": "https://raw.githubusercontent.com/denoland/deno_lint/main/schemas/rules.v1.json"
},
"minItems": 0,
"uniqueItems": true
@@ -431,8 +431,34 @@
"type": "object",
"patternProperties": {
"^[A-Za-z][A-Za-z0-9_\\-:]*$": {
- "type": "string",
- "description": "Command to execute for this task name."
+ "oneOf": [
+ {
+ "type": "string",
+ "description": "Command to execute for this task name."
+ },
+ {
+ "type": "object",
+ "description": "A definition of a task to execute",
+ "properties": {
+ "description": {
+ "type": "string",
+ "description": "Description of a task that will be shown when running `deno task` without a task name"
+ },
+ "command": {
+ "type": "string",
+ "required": true,
+ "description": "The task to execute"
+ },
+ "dependencies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Tasks that should be executed before this task"
+ }
+ }
+ }
+ ]
}
},
"additionalProperties": false
@@ -530,9 +556,11 @@
"cron",
"ffi",
"fs",
+ "fmt-component",
"http",
"kv",
"net",
+ "node-globals",
"sloppy-imports",
"temporal",
"unsafe-proto",