diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-09 12:33:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-09 16:33:09 +0000 |
| commit | 1e0ac609b57b9efdafd54de4cb56f98c507c032f (patch) | |
| tree | 9a78e6a456a59a25ff6e1bfa14ef8b657c4d3040 /tests/testdata/fmt | |
| parent | 3daab54612309a3e3aec5b7b8bd24b39ad510943 (diff) | |
BREAKING: remove deprecated files config (#25535)
The long form "files" config has been flattened into the parent.
Old:
```json
{
"test": {
"files": {
"include": ["**/*.ts"],
"exclude": ["ignore.ts"]
}
}
}
```
New:
```json
{
"test": {
"include": ["**/*.ts"],
"exclude": ["ignore.ts"]
}
}
```
This was deprecated some time ago, but we're removing it now in Deno
2.0.
Closes #25415
Diffstat (limited to 'tests/testdata/fmt')
| -rw-r--r-- | tests/testdata/fmt/fmt_with_deprecated_config.out | 3 | ||||
| -rw-r--r-- | tests/testdata/fmt/with_config/deno.deprecated.jsonc | 20 |
2 files changed, 0 insertions, 23 deletions
diff --git a/tests/testdata/fmt/fmt_with_deprecated_config.out b/tests/testdata/fmt/fmt_with_deprecated_config.out deleted file mode 100644 index 793fac1bc..000000000 --- a/tests/testdata/fmt/fmt_with_deprecated_config.out +++ /dev/null @@ -1,3 +0,0 @@ -Warning: "options" configuration is deprecated. Please use "flat" options instead. -Warning: "files" configuration is deprecated. Please use "include" and "exclude" instead. -Checked 2 files diff --git a/tests/testdata/fmt/with_config/deno.deprecated.jsonc b/tests/testdata/fmt/with_config/deno.deprecated.jsonc deleted file mode 100644 index e053233fd..000000000 --- a/tests/testdata/fmt/with_config/deno.deprecated.jsonc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "fmt": { - "files": { - "include": [ - "./subdir/" - ], - "exclude": [ - "./subdir/b.ts" - ] - }, - "options": { - "useTabs": true, - "lineWidth": 40, - "indentWidth": 8, - "singleQuote": true, - "proseWrap": "always", - "semiColons": false - } - } -} |
