0.0.3 • Published 8 years ago

gulp-stylelint-fail-reporter v0.0.3

Weekly downloads
35
License
MIT
Repository
github
Last release
8 years ago

gulp-stylelint-fail-reporter

Build Status Code Climate

A gulp-stylelint reporter that fails a stylelint linting task with non-zero exit code.

Installation

npm install gulp-stylelint-fail-reporter --save-dev

Quick start

import gulpStylelint from 'gulp-stylelint';
import failReporter from 'gulp-stylelint-fail-reporter';

gulp.task('lint-css', function lintCssTask() {
  return gulp
    .src('src/**/*.css')
    .pipe(gulpStylelint({
      reporters: [
        failReporter()
      ]
    }));
});

Note that if you're using ES5, you will have to access the library via the default property due to the way exports are handled in Babel 6:

var failReporter = require('gulp-stylelint-fail-reporter').default;

License

http://opensource.org/licenses/mit-license.html