0.0.3 • Published 9 years ago
gulp-stylelint-fail-reporter v0.0.3
gulp-stylelint-fail-reporter
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;