gulp-stylelint-fail-reporter

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i gulp-stylelint-fail-reporter

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • olegskl