How to use gulp-csslint - 10 common examples

To help you get started, we’ve selected a few gulp-csslint 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 dropbox / hermes / gulpfile.js View on Github external
gulp.task('lint:style', function() {
    return gulp.src(STYLE_SRC)
        .pipe(csslint())
        .pipe(csslint.reporter());
});
github dropbox / nsot / gulpfile.js View on Github external
gulp.task('lint:style', function() {
    return gulp.src(STYLE_SRC)
        .pipe(csslint())
        .pipe(csslint.reporter());
});
github mrmrs / fluidity / gulpfile.js View on Github external
gulp.task('csslint', function(){
  gulp.src('./css/*.css')
    .pipe(csslint({
          'compatible-vendor-prefixes': false,
          'box-sizing': false,
          'important': false
        }))
    .pipe(csslint.reporter());

});
github mrmrs / colors / gulpfile.js View on Github external
gulp.task('lint', function(){
  gulp.src('./css/*.css')
    .pipe(csslint({
          'compatible-vendor-prefixes': false,
          'box-sizing': false
        }))
    .pipe(csslint.reporter());

});
github ciandt-dev / tech-gallery / src / main / webapp / gulpfile.js View on Github external
gulp.task('csslint', function() {
  return gulp.src('./css/*.css')
    .pipe(csslint())
    .pipe(csslint.reporter('checkstyle-xml'));
});
github 0xadada / dockdj / gulpfile.js View on Github external
gulp.task('check:css', function() {
    return gulp.src(config.csslint.src)
        .pipe(csslint(config.csslint.csslintrc))
        .pipe(csslint.reporter('compact'))
        .pipe(csslint.reporter('fail'));
});
github 0xadada / dockdj / gulpfile.js View on Github external
gulp.task('check:css', function() {
    return gulp.src(config.csslint.src)
        .pipe(csslint(config.csslint.csslintrc))
        .pipe(csslint.reporter('compact'))
        .pipe(csslint.reporter('fail'));
});
github crystian / WEBAPP-BUILDER / tasks / shared.js View on Github external
exports.sassfixer = function(src, dest) {
	var sassOptions = {sourcemap: false, style: 'expanded', noCache: true};
	if (global.cfg.os==='osx') {
		sassOptions['sourcemap=none'] = true;
	}
	return gulp.src(src)
		//.pipe(debug({verbose: true}))
		//.on('error', gutil.log)
		.pipe(sass(sassOptions))
		.pipe(autoprefixer(global.cfg.autoprefixer))
		.pipe(replace(' 0px', ' 0'))
		.pipe(csslint('csslintrc.json'))
		.pipe(csslint.reporter().on('error',gutil.log))
		.pipe(gulp.dest(dest));
};
github crystian / WEBAPP-BUILDER / tasks / loader / _css.js View on Github external
gulp.task('_makeCss', ['_cleanCss', '_makeConfig'], function(){
  var src  = global.cfg.pathFwk + global.cfg.loader.folders.www + '**/*.s+(a|c)ss',
      dest = global.cfg.pathFwk + global.cfg.loader.folders.www;

  var sassOptions = {errLogToConsole: true, indentedSyntax: false};

  return gulp.src(src)
    .pipe(utils.debugme())
    .pipe(sass(sassOptions))
    .pipe(autoprefixer({browsers: global.cfg.autoprefixer}))
    .pipe(replace(' 0px', ' 0'))
    .pipe(csslint(global.cfg.pathFwk + 'csslintrc.json'))
    .pipe(csslint.reporter(customReporter))
    .pipe(csslint.failReporter())
    .pipe(gif(global.cfg.loader.release, cssnano({zindex: false, reduceIdents: false})))
    .pipe(gulp.dest(dest))
    ;
});
github crystian / WEBAPP-BUILDER / tasks / project / engine / css.js View on Github external
linter: function(stream, config){
      stream = stream
        .pipe(replace(' 0px', ' 0'))
        .pipe(csslint('csslintrc.json'))
        .pipe(csslint.reporter(cssLintCustomReporter))
        .pipe(gif(config.linterForce, csslint.reporter('fail')));

      return stream;
    },
    minifyFile: function(stream){

gulp-csslint

CSSLint plugin for gulp

MIT
Latest version published 7 years ago

Package Health Score

48 / 100
Full package analysis

Popular gulp-csslint functions