JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 461
  • Score
    100M100P100Q110030F
  • License MIT

Stylish reporter for gulp-jscs

Package Exports

  • gulp-jscs-stylish

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-jscs-stylish) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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