summaryrefslogtreecommitdiff
path: root/cli/graph_util.rs
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/graph_util.rs
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/graph_util.rs')
0 files changed, 0 insertions, 0 deletions