0.1.0 • Published 9 years ago

gobble-jscs v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

gobble-jscs

Check JavaScript files with gobble and jscs.

Installation

npm install gobble-jscs

Usage

gobble('src/js').observe( 'jscs', {
	// 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 jscs options
});

If no jscs options are supplied with the second argument, gobble-jscs will use the nearest .jscsrc file instead (recommended). See the jscs website for documentation on the options you can specify.

License

MIT. Copyright (c) 2015 Martin Kolárik.