From 90a5ef5e343bedc0f6f5326b14b6851b71733bea Mon Sep 17 00:00:00 2001 From: scarf Date: Thu, 27 Apr 2023 12:02:36 +0900 Subject: feat(cli): flatten deno.json configuaration (#17799) --- cli/schemas/config-file.v1.json | 90 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) (limited to 'cli/schemas') diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json index f0b496720..7978a2597 100644 --- a/cli/schemas/config-file.v1.json +++ b/cli/schemas/config-file.v1.json @@ -227,6 +227,20 @@ "description": "Configuration for linter", "type": "object", "properties": { + "include": { + "type": "array", + "description": "List of files or directories that will be linted.", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "description": "List of files or directories that will not be linted.", + "items": { + "type": "string" + } + }, "files": { "type": "object", "properties": { @@ -293,6 +307,20 @@ "description": "Configuration for formatter", "type": "object", "properties": { + "include": { + "type": "array", + "description": "List of files or directories that will be formatted.", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "description": "List of files or directories that will not be formatted.", + "items": { + "type": "string" + } + }, "files": { "type": "object", "properties": { @@ -312,6 +340,40 @@ } } }, + "useTabs": { + "description": "Whether to use tabs (true) or spaces (false) for indentation.", + "type": "boolean", + "default": false + }, + "lineWidth": { + "description": "The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.", + "type": "number", + "default": 80 + }, + "indentWidth": { + "description": "The number of characters for an indent.", + "type": "number", + "default": 2 + }, + "singleQuote": { + "type": "boolean", + "description": "Whether to use single quote (true) or double quote (false) for quotation.", + "default": false + }, + "proseWrap": { + "description": "Define how prose should be wrapped in Markdown files.", + "default": "always", + "enum": [ + "always", + "never", + "preserve" + ] + }, + "semiColons": { + "description": "Whether to prefer using semicolons.", + "type": "boolean", + "default": true + }, "options": { "type": "object", "properties": { @@ -368,6 +430,20 @@ "description": "Configuration for deno test", "type": "object", "properties": { + "include": { + "type": "array", + "description": "List of files or directories that will be searched for tests.", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "description": "List of files or directories that will not be searched for tests.", + "items": { + "type": "string" + } + }, "files": { "type": "object", "properties": { @@ -393,6 +469,20 @@ "description": "Configuration for deno bench", "type": "object", "properties": { + "include": { + "type": "array", + "description": "List of files or directories that will be searched for benchmarks.", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "description": "List of files or directories that will not be searched for benchmarks.", + "items": { + "type": "string" + } + }, "files": { "type": "object", "properties": { -- cgit v1.2.3