From 15613d174b1f4143af1a06f38eff2e4879276e43 Mon Sep 17 00:00:00 2001 From: Adam Vigneaux Date: Tue, 3 Dec 2024 19:07:42 -0600 Subject: [PATCH] fix: observe `quiet` field in configuration file Previously, the `quiet` field in the configuration file would be ignored by the CLI, only the `--quiet` command-line flag would work. Now, both work. Note that `DCLinter` does not observe the `quiet` configuration field. --- src/cli/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cli.ts b/src/cli/cli.ts index aefebbd..3dab871 100644 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -109,7 +109,7 @@ async function main() { let lintResults = await linter.lintFiles(cliArguments.files, cliArguments.recursive); - if (cliArguments.quiet) { + if (config.quiet) { lintResults = lintResults .map((result) => ({ ...result,