How to use gulp-sass-lint - 10 common examples

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 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 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 mediacurrent / theme_generator_8 / generators / app / templates / _gulp-tasks / lint.js View on Github external
lintSass: function() {
    return src([
      './src/patterns/{global,layout,components}/**/*.scss',
      '!./src/patterns/global/utils/*'
    ])
      .pipe(sassLint())
      .pipe(sassLint.format());
  },
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);
});

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