diff options
author | Brenley Dueck <brenleydueck@gmail.com> | 2022-10-25 07:21:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 14:21:20 +0200 |
commit | a189c5393e1b106687736635fea0b8aeca283826 (patch) | |
tree | 6c0119266f77611e1ba8146ee394f8e10cf8b3c4 /cli/tests/integration/lint_tests.rs | |
parent | ac5fcf626a77db7795f7ab2b4f15e4ecb3270171 (diff) |
feat(lint): add a report lint config setting (#16045)
Builds off this PR to add a "report" setting to deno.json which can be
"pretty", "compact", or "json".
Diffstat (limited to 'cli/tests/integration/lint_tests.rs')
-rw-r--r-- | cli/tests/integration/lint_tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/lint_tests.rs b/cli/tests/integration/lint_tests.rs index afcdc6e40..70a3cbbd4 100644 --- a/cli/tests/integration/lint_tests.rs +++ b/cli/tests/integration/lint_tests.rs @@ -95,7 +95,19 @@ itest!(lint_with_config { exit_code: 1, }); +itest!(lint_with_report_config { + args: "lint --config lint/Deno.compact.format.jsonc lint/with_config/", + output: "lint/with_report_config_compact.out", + exit_code: 1, +}); + // Check if CLI flags take precedence +itest!(lint_with_report_config_override { + args: "lint --config lint/Deno.compact.format.jsonc lint/with_config/ --json", + output: "lint/with_report_config_override.out", + exit_code: 1, +}); + itest!(lint_with_config_and_flags { args: "lint --config lint/Deno.jsonc --ignore=lint/with_config/a.ts", output: "lint/with_config_and_flags.out", |