0.1.0 • Published 10 years ago
gobble-jshint v0.1.0
gobble-jshint
Check JavaScript files with gobble and jshint.
Installation
npm install gobble-jshint
Usage
gobble('src/js').observe( 'jshint', {
// string, array, or RegExp
accept: '.js',
// if `true`, errors will not cause the whole build to fail
reportOnly: false,
// custom reporter
reporter: function (results) {
// `results` is an array of { file, filePath, errors } objects
},
// all other options are jshint options
});
If no jshint options are supplied with the second argument, gobble-jshint will use the nearest .jshintrc
file instead (recommended). See
the jshint website for documentation on the options you can specify.
License
MIT. Copyright (c) 2015 Martin Kolárik.
0.1.0
10 years ago