You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to silence the output of non-modified files.
I first tried silencing STDOUT, but that also silenced the output of files that are modified. (Would be nice if these were on different streams.)
Then, acknowledging that prettier-standard uses prettierx under the hood, I started throwing prettier's CLI flags. --loglevel warn|silent|error etc.
Then I just started guessing with --silent, --quiet, -q, etc.
Ideally what I'd like is for the output of non modified files to go to a different stream than the names of files that are modified. I don't have strong opinions on which goes where. On one hand, printing files that aren't modified on STDERR could make sense (that would be considered diagnostic output since prettier-standard's primary purpose is to format files). OTOH, files that need modifying are/were in an "error" state prior the invocation.
A stretch goal would be to accept the same CLI flags as prettier for the loglevel. That would allow more fine grained control. Again, I don't have a strong opinion on what levels apply to what. As long as I can quiet the output to only print modified files.
The text was updated successfully, but these errors were encountered:
I would like to silence the output of non-modified files.
I first tried silencing STDOUT, but that also silenced the output of files that are modified. (Would be nice if these were on different streams.)
Then, acknowledging that prettier-standard uses prettierx under the hood, I started throwing prettier's CLI flags.
--loglevel warn|silent|error
etc.Then I just started guessing with
--silent
,--quiet
,-q
, etc.Ideally what I'd like is for the output of non modified files to go to a different stream than the names of files that are modified. I don't have strong opinions on which goes where. On one hand, printing files that aren't modified on STDERR could make sense (that would be considered diagnostic output since prettier-standard's primary purpose is to format files). OTOH, files that need modifying are/were in an "error" state prior the invocation.
A stretch goal would be to accept the same CLI flags as prettier for the loglevel. That would allow more fine grained control. Again, I don't have a strong opinion on what levels apply to what. As long as I can quiet the output to only print modified files.
The text was updated successfully, but these errors were encountered: