Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Please document how to use a global config file #483

Closed
ripper234 opened this Issue · 4 comments

3 participants

@ripper234

http://stackoverflow.com/questions/9770968/passing-options-to-jshint

Sorry for the trivial question, but I'm trying to use jshint from the command line and can't understand how to correctly use a global config file. Please see the question on Stack Overflow for details on what I've tried.

@ripper234

After far too much time spent on this, I found this link: http://www.2ality.com/2011/09/jshint.html

The config file is in JSON format, not javascript!

It's also worth documenting the keys have to be wrapped by quotes.

@domenic

This is documented in the README for node-jshint, which is the command-line version of JSHint you are presumably using. JSHint itself is just a JavaScript file, not a command-line tool.

https://github.com/jshint/node-jshint

@neonstalwart

It's also worth documenting the keys have to be wrapped by quotes.

this is true for anything that's JSON. it seems redundant to mention it.

also, maybe you could close this ticket since it actually relates to a different project and it's already documented there https://github.com/jshint/node-jshint/blob/v0.5.9/README.md

@ripper234

Thanks for not closing the issue it for me but rather asking me to close it.
Now that you explain it, it makes sense - of course this does not involve jshint itself.

Not sure why I haven't found the documentation in the first place.

@ripper234 ripper234 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.