-
I'm having real trouble reading some of the default output of eslint -- specifically the line numbers / rule name: I've tried setting maximum contrast in my terminal, but even then the line numbers manage to be too dark. I do value the colors in general (e.g. error) and so I'd love to avoid having to set the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I see the code that is adding the colors is here: eslint/lib/cli-engine/formatters/stylish.js Lines 38 to 79 in c0b11dd It looks like the issue is |
Beta Was this translation helpful? Give feedback.
-
The functions which log the results in terminal are called formatters. ESLint comes built-in with a bunch of those, plus, you can make your own function to log the results - https://eslint.org/docs/latest/extend/custom-formatters |
Beta Was this translation helpful? Give feedback.
Formatters are completely self-contained functions. ESLint has no idea what is being output, whether there are colors or not, so there isn't any way to implement an option that will "just work" for all ESLint output.
If you don't like the colors in the default formatter, you can always try a different one, or you can write your own.