Although you cannot use wildcards when running jshint as a script task in npm on windows, you can get around this. By default, if jshint is passed to a directory, it will look for that directory recursively. Therefore, in your case, you can simply:
"script": { "lint": "jshint app" }
or even
"script": { "lint": "jshint ." }
This will cause all files, including those that are in node_modules, to be unrated - this is probably not what you want. The easiest way to get around this is to have a file called .jshintignore in the root directory of your project containing folders and scripts that you do not want to use:
node_modules/ build/ dir/another_unlinted_script.js
This is a cross-platform solution for jshint as a script task in npm.
Richard Williams
source share