diff options
| author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-09-16 20:45:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-16 17:45:25 +0000 |
| commit | 36a1a79f175b2df31d8ba5d7e121239c3b7e74ea (patch) | |
| tree | a2d1c96ba22181dc3301e3a20e4c4977f50b5d3d /tests/specs/lint/with_malformed_config2 | |
| parent | acc32e1cee043ef7233a94bcf5645c4a842ed13a (diff) | |
chore: deprecate lint itests (#25655)
Diffstat (limited to 'tests/specs/lint/with_malformed_config2')
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/specs/lint/with_malformed_config2/Deno.malformed2.jsonc b/tests/specs/lint/with_malformed_config2/Deno.malformed2.jsonc new file mode 100644 index 000000000..fa71cd851 --- /dev/null +++ b/tests/specs/lint/with_malformed_config2/Deno.malformed2.jsonc @@ -0,0 +1,11 @@ +{ + "lint": { + "include": ["with_config/"], + "exclude": ["with_config/b.ts"], + "dont_know_this_field": {}, + "rules": { + "tags": ["recommended"], + "include": ["ban-untagged-todo"] + } + } +} diff --git a/tests/specs/lint/with_malformed_config2/__test__.jsonc b/tests/specs/lint/with_malformed_config2/__test__.jsonc new file mode 100644 index 000000000..3210f5a59 --- /dev/null +++ b/tests/specs/lint/with_malformed_config2/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "lint --config Deno.malformed2.jsonc", + "output": "with_malformed_config2.out", + "exitCode": 1 +} diff --git a/tests/specs/lint/with_malformed_config2/with_malformed_config2.out b/tests/specs/lint/with_malformed_config2/with_malformed_config2.out new file mode 100644 index 000000000..1c0f0fff6 --- /dev/null +++ b/tests/specs/lint/with_malformed_config2/with_malformed_config2.out @@ -0,0 +1,4 @@ +error: Failed to parse "lint" configuration + +Caused by: + unknown field `dont_know_this_field`, expected one of `rules`, `include`, `exclude`, `files`, `report` |
