diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2022-01-17 20:10:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-17 20:10:17 -0500 |
| commit | 39ea4abff4bfa09c4e98e00ad0d4e0e7b78f1187 (patch) | |
| tree | 501ac70cd048f0a197f2accf1cf01234d54cf143 /cli/tests/testdata | |
| parent | b10563cb2083f7af9d4320662d6aa1897b6db23e (diff) | |
feat: auto-discover config file (#13313)
Diffstat (limited to 'cli/tests/testdata')
| -rw-r--r-- | cli/tests/testdata/fmt/deno.jsonc | 15 | ||||
| -rw-r--r-- | cli/tests/testdata/fmt/with_config/deno.jsonc | 19 | ||||
| -rw-r--r-- | cli/tests/testdata/fmt/with_config/subdir/a.ts (renamed from cli/tests/testdata/fmt/fmt_with_config/a.ts) | 0 | ||||
| -rw-r--r-- | cli/tests/testdata/fmt/with_config/subdir/b.ts (renamed from cli/tests/testdata/fmt/fmt_with_config/b.ts) | 0 | ||||
| -rw-r--r-- | cli/tests/testdata/fmt/with_config/subdir/c.md (renamed from cli/tests/testdata/fmt/fmt_with_config/c.md) | 0 | ||||
| -rw-r--r-- | cli/tests/testdata/malformed_config/deno.json | 1 |
6 files changed, 20 insertions, 15 deletions
diff --git a/cli/tests/testdata/fmt/deno.jsonc b/cli/tests/testdata/fmt/deno.jsonc deleted file mode 100644 index 9c330d34a..000000000 --- a/cli/tests/testdata/fmt/deno.jsonc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "fmt": { - "files": { - "include": ["fmt_with_config/"], - "exclude": ["fmt_with_config/b.ts"] - }, - "options": { - "useTabs": true, - "lineWidth": 40, - "indentWidth": 8, - "singleQuote": true, - "proseWrap": "always" - } - } -} diff --git a/cli/tests/testdata/fmt/with_config/deno.jsonc b/cli/tests/testdata/fmt/with_config/deno.jsonc new file mode 100644 index 000000000..3b9474e64 --- /dev/null +++ b/cli/tests/testdata/fmt/with_config/deno.jsonc @@ -0,0 +1,19 @@ +{ + "fmt": { + "files": { + "include": [ + "./subdir/" + ], + "exclude": [ + "./subdir/b.ts" + ] + }, + "options": { + "useTabs": true, + "lineWidth": 40, + "indentWidth": 8, + "singleQuote": true, + "proseWrap": "always" + } + } +} diff --git a/cli/tests/testdata/fmt/fmt_with_config/a.ts b/cli/tests/testdata/fmt/with_config/subdir/a.ts index 50db0d2e1..50db0d2e1 100644 --- a/cli/tests/testdata/fmt/fmt_with_config/a.ts +++ b/cli/tests/testdata/fmt/with_config/subdir/a.ts diff --git a/cli/tests/testdata/fmt/fmt_with_config/b.ts b/cli/tests/testdata/fmt/with_config/subdir/b.ts index 840198d89..840198d89 100644 --- a/cli/tests/testdata/fmt/fmt_with_config/b.ts +++ b/cli/tests/testdata/fmt/with_config/subdir/b.ts diff --git a/cli/tests/testdata/fmt/fmt_with_config/c.md b/cli/tests/testdata/fmt/with_config/subdir/c.md index 012f7e3d4..012f7e3d4 100644 --- a/cli/tests/testdata/fmt/fmt_with_config/c.md +++ b/cli/tests/testdata/fmt/with_config/subdir/c.md diff --git a/cli/tests/testdata/malformed_config/deno.json b/cli/tests/testdata/malformed_config/deno.json new file mode 100644 index 000000000..60df56527 --- /dev/null +++ b/cli/tests/testdata/malformed_config/deno.json @@ -0,0 +1 @@ +not a json file |
