Skip to content

Commit

Permalink
Observe quiet field in configuration file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AdamVig committed Dec 4, 2024
1 parent b49decb commit 2ea03b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2ea03b4

Please sign in to comment.