summaryrefslogtreecommitdiff
path: root/cli/schemas
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-05-23 03:39:59 +0200
committerGitHub <noreply@github.com>2023-05-23 03:39:59 +0200
commit5874fc3d0aaf1b0453fb916656187503d8619ccd (patch)
tree16bdea5734546c04a95a119e139542f83bed2d8a /cli/schemas
parentbb37dfb5b79c0e5ae18d34f01313cb1f39d7a2dd (diff)
feat: add support for globs in the config file and CLI arguments for files (#19102)
Follow up to https://github.com/denoland/deno/pull/19084. This commit adds support for globs in the configuration file as well as CLI arguments for files. With this change users can now use glob syntax for "include" and "exclude" fields, like so: ```json { "lint": { "include": [ "directory/test*.ts", "other_dir/" ], "exclude": [ "other_dir/foo*.ts", "nested/nested2/*" ] }, "test": { "include": [ "data/test*.ts", "nested/", "tests/test[1-9].ts" ], "exclude": [ "nested/foo?.ts", "nested/nested2/*" ] } } ``` Or in CLI args like so: ``` // notice quotes here; these values will be passed to Deno verbatim // and deno will perform glob expansion $ deno fmt --ignore="data/*.ts" $ deno lint "data/**/*.ts" ``` Closes https://github.com/denoland/deno/issues/17971 Closes https://github.com/denoland/deno/issues/6365
Diffstat (limited to 'cli/schemas')
-rw-r--r--cli/schemas/config-file.v1.json34
1 files changed, 17 insertions, 17 deletions
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index 99f2b3a79..73723c52b 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -225,7 +225,7 @@
},
"exclude": {
"type": "array",
- "description": "List of files or directories that will be ignored by all other configurations. Requires Deno 1.34 or later.",
+ "description": "List of files, directories or globs that will be ignored by all other configurations. Requires Deno 1.34 or later.",
"items": {
"type": "string"
}
@@ -236,14 +236,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be linted.",
+ "description": "List of files, directories or globs that will be linted.",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
- "description": "List of files or directories that will not be linted.",
+ "description": "List of files, directories or globs that will not be linted.",
"items": {
"type": "string"
}
@@ -253,14 +253,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be linted.",
+ "description": "List of files, directories or globs that will be linted.",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
- "description": "List of files or directories that will not be linted.",
+ "description": "List of files, directories or globs that will not be linted.",
"items": {
"type": "string"
}
@@ -316,14 +316,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be formatted.",
+ "description": "List of files, directories or globs that will be formatted.",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
- "description": "List of files or directories that will not be formatted.",
+ "description": "List of files, directories or globs that will not be formatted.",
"items": {
"type": "string"
}
@@ -333,14 +333,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be formatted.",
+ "description": "List of files, directories or globs that will be formatted.",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
- "description": "List of files or directories that will not be formatted.",
+ "description": "List of files, directories or globs that will not be formatted.",
"items": {
"type": "string"
}
@@ -443,14 +443,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be searched for tests.",
+ "description": "List of files, directories or globs 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.",
+ "description": "List of files, directories or globs that will not be searched for tests.",
"items": {
"type": "string"
}
@@ -460,14 +460,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be searched for tests.",
+ "description": "List of files, directories or globs 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.",
+ "description": "List of files, directories or globs that will not be searched for tests.",
"items": {
"type": "string"
}
@@ -482,14 +482,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be searched for benchmarks.",
+ "description": "List of files, directories or globs 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.",
+ "description": "List of files, directories or globs that will not be searched for benchmarks.",
"items": {
"type": "string"
}
@@ -499,14 +499,14 @@
"properties": {
"include": {
"type": "array",
- "description": "List of files or directories that will be searched for benchmarks.",
+ "description": "List of files, directories or globs 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.",
+ "description": "List of files, directories or globs that will not be searched for benchmarks.",
"items": {
"type": "string"
}