gobble-jshint

0.1.0 • Public • Published

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.

/gobble-jshint/

    Package Sidebar

    Install

    npm i gobble-jshint

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • martin-kolarik