1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/cli/tests/testdata/lint
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
watch feat(lint): add support for --watch flag (#11983) 2021-10-05 23:07:38 +02:00
with_config test: refactor lint tests into directories (#12317) 2021-10-04 18:16:49 +02:00
without_config fix: upgrade to swc_ecmascript 0.143 (#14238) 2022-04-08 12:31:47 -04:00
Deno.compact.format.jsonc feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -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.jsonc feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04: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
Deno.no_tags.jsonc feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
expected.out chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
expected_compact.out chore: fix flaky integration::lint::compact (#16075) 2022-09-28 13:52:10 -04:00
expected_from_stdin.out chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
expected_from_stdin_json.out chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
expected_glob.out chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
expected_ignore.out chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
expected_json.out fix: upgrade deno_ast to 0.23 (#17269) 2023-01-04 18:54:54 -05:00
expected_quiet.out fix(lint): column number for pretty reporting was off by 1 (#17107) 2022-12-17 16:00:33 -05:00
expected_rules.out chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
expected_verbose.out chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
with_config.out fix(lint): column number for pretty reporting was off by 1 (#17107) 2022-12-17 16:00:33 -05:00
with_config_and_flags.out fix(lint): column number for pretty reporting was off by 1 (#17107) 2022-12-17 16:00:33 -05:00
with_config_without_tags.out fix(lint): column number for pretty reporting was off by 1 (#17107) 2022-12-17 16:00:33 -05:00
with_malformed_config.out feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
with_malformed_config2.out feat(cli): flatten deno.json configuaration (#17799) 2023-04-26 23:02:36 -04:00
with_report_config_compact.out feat(lint): add a report lint config setting (#16045) 2022-10-25 14:21:20 +02:00
with_report_config_override.out feat(lint): add a report lint config setting (#16045) 2022-10-25 14:21:20 +02:00