Skip to content
This repository

Please document how to use a global config file #483

Closed
ripper234 opened this Issue March 19, 2012 · 4 comments

3 participants

Ron Gross Domenic Denicola Ben Hockey
Ron Gross

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.

Ron Gross

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 Denicola

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

Ben Hockey

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

Ron Gross ripper234 closed this March 19, 2012
Ron Gross

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.

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.