I ran jshint on a very simple file that looks like
if ( 1 == 2 ) {
}
And the output is kind of weird looking. I have the text being output to a logfile, and this is what the log looks like
^[[4mRunning "lint:files" (lint) task^[[24m
Linting src/bad.js...^[[31mERROR^[[39m
^[[31m[^[[39m^[[33mL1^[[39m^[[31m:^[[39m^[[33mC8^[[39m^[[31m]^[[39m ^[[33mExpected '===' and instead saw '=='.^[[39m
if ( 1 ^[[31m^[[7m=^[[27m^[[39m= 2 ) {
But if I print it to the console it looks like
Linting src/bad.js...ERROR
[L1:C8] Expected '===' and instead saw '=='.
if ( 1 == 2 ) {
Any thoughts why the file version is odd looking like that?
Those are console color commands.
Have a look at this answer as reference