diff options
author | scarf <greenscarf005@gmail.com> | 2023-04-27 12:02:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 23:02:36 -0400 |
commit | 90a5ef5e343bedc0f6f5326b14b6851b71733bea (patch) | |
tree | 4c53261235e3d8720cad99341ee1eac31a92fa3e /cli/schemas | |
parent | 4192978c3afc943b93d9fae0f65822a2c4edfa62 (diff) |
feat(cli): flatten deno.json configuaration (#17799)
Diffstat (limited to 'cli/schemas')
-rw-r--r-- | cli/schemas/config-file.v1.json | 90 |
1 files changed, 90 insertions, 0 deletions
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": { |