gulp-jscs 
Check JavaScript code style with jscs

Issues with the output should be reported on the jscs
issue tracker.
Install
$ npm install --save-dev gulp-jscs
Usage
Reporting
var gulp = require('gulp');
var jscs = require('gulp-jscs');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(jscs());
});
Fixing & reporting
var gulp = require('gulp');
var jscs = require('gulp-jscs');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(jscs({
fix: true
}))
.pipe(gulp.dest('src'));
});
Results
A jscs
object will be attached to the file object which can be used for custom error reporting. An example with one error might look like this:
{
success: false,
errorCount: 1,
errors: [{
filename: 'index.js',
rule: 'requireCamelCaseOrUpperCaseIdentifiers',
message: 'All identifiers must be camelCase or UPPER_CASE',
line: 32,
column: 7
}]
};
API
jscs([options])
options
Type: object
See the jscs
options.
Alternatively you can set the configPath
(default: '.jscsrc'
) option to the path of a .jscsrc file.
Set esnext: true
if you want your code to be parsed as ES6 using the harmony
version of the esprima parser.
Set fix: true
if you want jscs to attempt to auto-fix your files. Be sure to pipe to gulp.dest
if you use this option.
License
MIT © Sindre Sorhus