Sublime-JSHint
Sublime-JSHint copied to clipboard
Reporting the wrong line number
After adding the 'use strict'; to avoid warning messages from jshitn, it's reporting the wrong line number for the error and highlighting a line which has nothing to do with the error.
For example:
Getting this error:
Column 52, use
!==to compare with ''.
In this line:
li += '<div class="fp-tooltip ' + options.navigationPosition + '">' + tooltip + '</div>';
Or
Column 34; Expected an asignment or function call and isntead saw an expression
In a comment line.
I'm using Sublime 3.
Can you post a reduced test case? I can't reproduce this.
Strange, same issue 2 years later. I have tooltips turned on in Sublimelinter and it reports the incorrect line (1 line before). I'm using Material Theme, but that should not make a difference.
