Closed andyperlitch closed 10 years ago
Thanks for the report. Where do you keep your .jshintrc? EDIT: ok, now I see it's right near the linted file.
I'll clone this and see what happens.
The root of my repository (like in the example repo i just put up). Were you able to recreate by cloning https://github.com/andyperlitch/sublime-jshint-bug and running it yourself?
Yup, I can reproduce this.
What version of jshint were you using when running jshint test.js
in the terminal?
$ jshint -v
jshint v2.3.0
Thanks!
Thank you for being so responsive!
I updated jshint to v2.5.2 (latest). This plugin uses something relatively recent as well. When using it myself from the command line, jshint test.js
from your repo, I get no output. This looks like a jshint bug!
It actually looks like trailing
is a removed option now :(
Changeset: https://github.com/jshint/jshint/commit/0c0e19319b276b019d285bdfd2cfc49126abd814
very interesting... I suppose i'm okay with no longer having trailing, but it isn't catching the indents either?? Lame.
Maybe file a bug/request on the jshint repo?
Check it out: https://github.com/jshint/jshint/issues/1677
Great plugin, very useful!
I am having an issue though with trailing white space and indentation. Say I have a
test.js
file:...and a .jshintrc:
When I run
jshint test.js
, I get the two expected errors (white space and indentation). But when I run your plugin, I get no errors. I made this use-case into a little repo so you could clone and test yourself: https://github.com/andyperlitch/sublime-jshint-bug.My sublime linting preferences are as follows (don't think I have changed anything from defaults):
Thanks in advance! Sorry if this is a duplicate or known bug!
EDIT: I am on Sublime Text 2, build 2221.