gulp-stylelint-checkstyle-reporter
v0.2.0
Published
gulp-stylelint reporter that writes stylelint results to xml file in checkstyle plugin format
Downloads
14
Maintainers
Readme
gulp-stylelint-checkstyle-reporter
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;