codepunkt/gulp-jscs-stylish


Stylish reporter for gulp-jscs, uses jshint-stylish to do the actual reporting:

License: MIT

Language: JavaScript


gulp-jscs-stylish

Stylish reporter for gulp-jscs, uses jshint-stylish to do the actual reporting:

screenshot

Compared to the default output:

screenshot

Install

$ npm i --save-dev gulp-jscs-stylish

Usage

var jscs = require('gulp-jscs');
var noop = function () {};
var stylish = require('gulp-jscs-stylish');

gulp.task('default', function () {
    gulp.src([ 'file.js' ])
        .pipe(jscs())      // enforce style guide
        .pipe(stylish());  // log style errors
});

Combine results with those of JSHint

var jscs = require('gulp-jscs');
var jshint = require('gulp-jshint');
var noop = function () {};
var stylish = require('gulp-jscs-stylish');

gulp.task('default', function () {
    gulp.src([ 'file.js' ])
        .pipe(jshint())                           // hint (optional)
        .pipe(jscs())                             // enforce style guide
        .pipe(stylish.combineWithHintResults())   // combine with jshint results
        .pipe(jshint.reporter('jshint-stylish')); // use any jshint reporter to log hint
                                                  // and style guide errors
});

using .pipe(jshint()) is optional. you may very well use the reporter without running jshint

License

MIT © Christoph Werner

Project Statistics

Sourcerank 12
Repository Size 82 KB
Stars 12
Forks 6
Watchers 1
Open issues 2
Dependencies 2
Contributors 8
Tags 4
Created
Last updated
Last pushed

Top Contributors See all

Christoph Werner Felipe Chiumeo Jesús Rubio 小土豆 Peter Kuiper Mark Catley Sven Schoenung Nick Oliver

Packages Referencing this Repo

gulp-jscs-stylish
Stylish reporter for gulp-jscs
Latest release 1.4.0 - Updated - 12 stars

Recent Tags See all

v1.4.0 April 18, 2016
v1.2.1 September 25, 2015
v1.2.0 September 24, 2015
v1.0.1 January 29, 2015

Something wrong with this page? Make a suggestion

Last synced: 2016-05-27 19:12:38 UTC

Login to resync this repository