0.2.0 • Published 8 years ago

gulp-stylelint-checkstyle-reporter v0.2.0

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

gulp-stylelint-checkstyle-reporter

NPM version Build Status Join the chat at https://gitter.im/olegskl/gulp-stylelint

A gulp-stylelint reporter to display stylelint results in checkstyle.

Installation

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

Quick start

import gulpStylelint from 'gulp-stylelint';
import checkstyleReporter from 'gulp-stylelint-checkstyle-reporter';

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

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 checkstyleReporter = require('gulp-stylelint-checkstyle-reporter').default;

License

MIT License