Option to print diagnostics more compactly #1909
andenacitelli
started this conversation in
Ideas
Replies: 1 comment
-
This could be partially solved by a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Logs seem to have
--log-kind
which can be set to"pretty" | "compact" | "json"
. However, as referenced in a related issue, a similar option is not available for the printing of actual diagnostics.When I initially tried biome, this threw me off. I ran on an existing project I am considering migrating from ESLint (meaning lots of initial errors popped up -- though to Biome's credit, many were autofixable) and it was just a lot of output.
Each error simply takes up a lot of vertical lines. Here's an example:
This is 19 lines of output for one error.
While I think the verbose descriptions are a benefit, this was simply a ton of output and took a while to scroll up, running it fresh on an existing project I'm migrating from ESLint. Perhaps allowing parameterization of one or more things might be useful:
✖ This hook does not specify all of its dependencies: userFilters.isSuccess
) should be includedI'd think a similar interface where users can supply
"pretty" | "compact"
would be the best user experience. Pretty would be the existing option, compact would essentially get rid of the pure whitespace lines and trim (or entirely remove) the code print-out.Beta Was this translation helpful? Give feedback.
All reactions