'use strict';
/**
* @module tasks/sass/lint-on-change
*/
/**
* taskFactory
* @param options {Object}
* @returns task {Function}
*/
var gulp = require('gulp');
var sasslint = require('gulp-scss-lint');
module.exports = function taskFactory (options) {
return function lintChanged (files) {
return gulp.src(files)
.pipe(sasslint(options))
.pipe(sasslint.failReporter());
};
};