1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 19:37:59 -05:00
denoland-deno/cli/tests/testdata/fmt
Bartek Iwańczuk 5874fc3d0a
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
2023-05-23 03:39:59 +02:00
..
glob feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
parse_error fix(fmt): should fail --check on parse error (#14907) 2022-06-18 12:44:43 -04:00
regular feat(cli/fmt): support more markdown extensions (#12195) 2021-09-23 21:49:25 +05:30
with_config feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
badly_formatted.json refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
badly_formatted.md refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
badly_formatted.mjs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
badly_formatted_fixed.js refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
badly_formatted_fixed.json refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
badly_formatted_fixed.md refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
deno.glob.json feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
deno.malformed.jsonc feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
deno.malformed2.jsonc feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
expected_fmt_check_formatted_files.out
expected_fmt_check_ignore.out
expected_fmt_check_verbose_formatted_files.out
expected_fmt_check_verbose_tests_dir.out
fmt_check_parse_error.out fix: upgrade deno_ast to 0.23 (#17269) 2023-01-04 18:54:54 -05:00
fmt_with_config.out
fmt_with_config_and_flags.out
fmt_with_config_default.out feat: log detection of config file (#17338) 2023-01-24 15:41:22 +01:00
fmt_with_deprecated_config.out feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
fmt_with_malformed_config.out feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
fmt_with_malformed_config2.out feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
invalid_data.json fix(cli/fmt): show filepath for InvalidData error (#17361) 2023-01-16 00:30:52 +00:00
invalid_data.out fix(cli/fmt): show filepath for InvalidData error (#17361) 2023-01-16 00:30:52 +00:00