summaryrefslogtreecommitdiff
path: root/cli/schemas
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-02-20 14:49:24 +0100
committerGitHub <noreply@github.com>2024-02-20 13:49:24 +0000
commit4201f17936e6c67eaf2d7b0d76690f674d68d13e (patch)
tree27b4aacf55e65298c2b1d0d615816ae0f82f4040 /cli/schemas
parent54a3eb585df170c14bdc0e237a8a2276dd705f38 (diff)
fix(lsp): add schema for JSR related config options (#22497)
Diffstat (limited to 'cli/schemas')
-rw-r--r--cli/schemas/config-file.v1.json53
1 files changed, 35 insertions, 18 deletions
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index 58293ce8b..8b2b46134 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -86,9 +86,7 @@
"description": "Specify a set of bundled library declaration files that describe the target runtime environment.",
"type": "array",
"uniqueItems": true,
- "default": [
- "deno.window"
- ],
+ "default": ["deno.window"],
"items": {
"type": "string"
},
@@ -308,11 +306,7 @@
},
"report": {
"default": "pretty",
- "enum": [
- "pretty",
- "json",
- "compact"
- ],
+ "enum": ["pretty", "json", "compact"],
"description": "The default report format to use when linting"
}
}
@@ -377,11 +371,7 @@
"proseWrap": {
"description": "Define how prose should be wrapped in Markdown files.",
"default": "always",
- "enum": [
- "always",
- "never",
- "preserve"
- ]
+ "enum": ["always", "never", "preserve"]
},
"semiColons": {
"description": "Whether to prefer using semicolons.",
@@ -414,11 +404,7 @@
"proseWrap": {
"description": "Define how prose should be wrapped in Markdown files.",
"default": "always",
- "enum": [
- "always",
- "never",
- "preserve"
- ]
+ "enum": ["always", "never", "preserve"]
},
"semiColons": {
"description": "Whether to prefer using semicolons.",
@@ -557,6 +543,37 @@
"items": {
"type": "string"
}
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of this JSR package. Must be scoped",
+ "examples": ["@luca/flag"]
+ },
+ "version": {
+ "type": "string",
+ "description": "The version of this JSR package.",
+ "examples": ["0.1.0", "1.0.0"]
+ },
+ "exports": {
+ "oneOf": [
+ {
+ "type": "string",
+ "description": "The path to the main module of this JSR package.",
+ "examples": ["./mod.ts", "./index.js"],
+ "pattern": "^\\./.*$"
+ },
+ {
+ "type": "object",
+ "description": "A map of package exports to files in this JSR package.",
+ "patternProperties": {
+ "^\\.(/.*)?$": {
+ "type": "string",
+ "pattern": "^\\./.*$"
+ }
+ },
+ "examples": [{ ".": "./mod.ts" }]
+ }
+ ]
}
}
}