Feature request/discussion: add color to codeframe formatter #14870
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
triage
An ESLint team member will look at this issue soon
Projects
Hello and thanks for writing and maintaining eslint!
I was wondering whether there's any reason why the
codeframe
formatter output is always monochromatic. Is there any reason we shouldn't enable syntax highlighting?The version of ESLint you are using.
7.31.0
The problem you want to solve.
codeframe
formatter output is monochromatic even in color capable TTYs.Your take on the correct solution to problem.
Enable colors by setting the
highlightCode
option totrue
. I believe that'll handle everything automatically. If we wanna be more pedantic and consistent then we can respect eslint's--color
/--no-color
CLI arguments.Are you willing to submit a pull request to implement this change?
Yes, definitely! :)
Tagging original contributor @vitorbal for historical context.
The text was updated successfully, but these errors were encountered: