How to use the gulp-sass-lint.failOnError function in gulp-sass-lint

To help you get started, we’ve selected a few gulp-sass-lint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github johndavemanuel / bootstrap-gulp-starter-template / gulpfile.js View on Github external
function scssLint() {
  console.log('---------------SASS LINTING---------------');
  return src('src/assets/scss/**/*.scss')
    .pipe(sassLint({
      configFile: '.scss-lint.yml'
    }))
    .pipe(sassLint.format())
    .pipe(sassLint.failOnError());
}
github unoplatform / uno / doc / gulpfile.js View on Github external
gulp.task('styles', function() {
    let output = debug ? 'nested' : 'compressed';
    return gulp.src(assets + '/styles/scss/main.scss')
        .pipe(gulpif(debug,sourcemaps.init()))
        .pipe(gulpif(debug,sassLint()))
        .pipe(gulpif(debug,sassLint.format()))
        .pipe(gulpif(debug,sassLint.failOnError()))
        .pipe(sass({includePaths: ['./node_modules/'], outputStyle: output}) .on('error', sass.logError))
        .pipe(autoprefixer({ browsers: ['last 2 versions', '> 5%'] }))
        .pipe(gulpif(debug,sourcemaps.write()))
        .pipe(gulp.dest(assets + '/styles'))
        .pipe(livereload())
        .pipe(notify({ message: 'CSS complete' }));
});
github alphagov / govuk-frontend / tasks / gulp / lint.js View on Github external
gulp.task('scss:lint', () => {
  return gulp.src([
    configPaths.app + '**/*.scss',
    configPaths.src + '**/*.scss'
  ])
    .pipe(sasslint())
    .pipe(sasslint.format())
    .pipe(sasslint.failOnError())
})
github helpscout / seed / scripts / gulp / base / lint / default.js View on Github external
gulp.task('lint', function(callback) {
  return gulp.src(global.config.src + '/**/*.scss')
    .pipe(sassLint({
      configFile: global.path + '/.sass-lint.yml'
    }))
    .pipe(sassLint.format())
    .pipe(sassLint.failOnError())
    .on('close', callback);
});
github atmist / snazzy-info-window / gulpfile.js View on Github external
gulp.task('lint:sass', 'Lint the SASS files.', () => {
    return gulp.src([paths.allSrcSass, paths.allExampleSass])
        .pipe(sassLint())
        .pipe(sassLint.format())
        .pipe(sassLint.failOnError());
});
github virtualidentityag / gulp-frontend-boilerplate / gulp / tasks / sass.js View on Github external
return mergeStream(config.global.resources.map( function(currentResource) {
			return gulp.src(config.global.src + currentResource.replace('/','') + '/css/**/*.s+(a|c)ss')
				.pipe(cached('sass'))
				.pipe(sassLint())
				.pipe(sassLint.format())
				.pipe(sassLint.failOnError());
		}));
	}
github SnowdogApps / magento2-alpaca-components / gulpfile.js View on Github external
log({
          display: 'name',
          beforeEach: 'Processing: '
        })
      )
    )
    .pipe(
      gulpif(!util.env.ci,
        plumber({
          errorHandler: notify.onError('Error: <%= error.message %>')
        })
      )
    )
    .pipe(sassLint())
    .pipe(sassLint.format())
    .pipe(gulpif(util.env.ci, sassLint.failOnError()));
}

gulp-sass-lint

Gulp plugin for Sass Lint

MIT
Latest version published 7 years ago

Package Health Score

51 / 100
Full package analysis

Popular gulp-sass-lint functions