From the docs:
If your input passes JSHint tests, the function will return true. Otherwise, it will return false. In that case, you can use JSHINT.errors to retrieve the errors or request a complete report by calling the JSHINT.data() method.
The errors are in the JSHINT.errors
array, and those objects include line numbers and error reasons.
Here's a jsfiddle that demonstrates a simple use of JSHINT.errors.