mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
5874fc3d0a
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 |
||
---|---|---|
.. | ||
glob | ||
watch | ||
with_config | ||
without_config | ||
Deno.compact.format.jsonc | ||
deno.glob.json | ||
Deno.jsonc | ||
Deno.malformed.jsonc | ||
Deno.malformed2.jsonc | ||
Deno.no_tags.jsonc | ||
expected.out | ||
expected_compact.out | ||
expected_from_stdin.out | ||
expected_from_stdin_json.out | ||
expected_glob.out | ||
expected_ignore.out | ||
expected_json.out | ||
expected_quiet.out | ||
expected_rules.out | ||
expected_verbose.out | ||
with_config.out | ||
with_config_and_flags.out | ||
with_config_without_tags.out | ||
with_malformed_config.out | ||
with_malformed_config2.out | ||
with_report_config_compact.out | ||
with_report_config_override.out |