uipoet/sublime-jshint — Issue #10: How to set jshint options?
Author: tauren
Created: 2012-02-08 01:10:52+00:00
State: open

This isn't really an issue, but more of a support request. If there is a better way to get support, let me know.

My build process runs jshint on all files and reports errors. We are setting jshint options during this process. I'd like the output of command-B in Sublime to be the same as the output during the build process. But since different options are used, the output is different.

It appears that sublime-jshint is not passing any options to jshint. Is there a way to specify the options that jshint will use? For instance, if I want to use the following options for all JS files, how do I do it?

JSHINT(source, {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
eqnull: true,
browser: true,
node: true
},
{
jQuery: true
});