gulp-stylelint-checkstyle-reporter
0.2.0 • Public • Published 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;
License
MIT License
Package Sidebar
Install
npm i gulp-stylelint-checkstyle-reporter
Weekly Downloads