How do you exclude file extensions from command-line JSHint? -


i'm trying exclude *.min.js , *.intellisense.js files being linted command-line jshint. i'm passing in .jshintignore file via --exclude-path looks this:

*.min.js *.intellisense.js **.min.js **.intellisense.js **/*.min.js **/*.intellisense.js **\*.min.js **\*.intellisense.js 

none of patterns seem matching. versions: node v5.3.0, jshint v2.8.0.

the full command i'm running (in dir d:\projects\someweb\):

d:\utils\nodejs\node.exe d:\utils\nodejs\node_modules\jshint\bin\jshint --verbose --show-non-errors --exclude-path d:\utils\nodejs\.jshintignore .

update #1: workaround, i'm using powershell command:

powershell -nologo -noprofile -command "get-childitem -include *.js -exclude *.min.js,*-vsdoc.js,*.intellisense.js -recurse | % { d:\utils\nodejs\node d:\utils\nodejs\node_modules\jshint\bin\jshint --verbose --show-non-errors $_.fullname }" 


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -