jamesshore / simplebuild-jshint

A simple library for automating JSHint. Now with multi-core capability.
6 stars 1 forks source link

.jshintignore not supported #1

Open j-funk opened 9 years ago

j-funk commented 9 years ago

Thanks for making this and your great videos.

Would love to use jshints .jshintignore functionality with this script, so far looks like it's not supported.

jamesshore commented 9 years ago

Thanks, will consider it for a future release. In the meantime, you can exclude files by using "!" in front of the glob, like this:

jshint.checkFiles({
  files: [
    "src/**/*.js",
    "!src/vendor/**"
  ]
}, success, failure);

That will check every .js file in the src directory except the files in the src/vendor directory.

j-funk commented 9 years ago

Hey thanks that's all I needed.