/gulp-jscs

Check JavaScript code style with jscs

Primary LanguageJavaScriptMIT LicenseMIT

gulp-jscs Build Status

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

var gulp = require('gulp');
var jscs = require('gulp-jscs');

gulp.task('default', function () {
	return gulp.src('src/app.js')
		.pipe(jscs());
});

API

jscs(configPath | options)

configPath

Type: string
Default: './.jscsrc'

Path to the .jscsrc.

options

Type: object

See the jscs options.

Set esnext: true if you want your code to be parsed as ES6 using the harmony version of the esprima parser.

License

MIT © Sindre Sorhus