gulp-scss-lint-stylish2

Stylish reporter for gulp-scss-lint, following the visual style of ESLint stylish reporter

Usage no npm install needed!

<script type="module">
  import gulpScssLintStylish2 from 'https://cdn.skypack.dev/gulp-scss-lint-stylish2';
</script>

README

Stylish reporter for gulp-scss-lint, following the visual style of ESLint stylish reporter

dependencies licence npm version downloads

Overview

Example console output:

screenshot

Installation

npm install --save gulp-scss-lint-stylish2

Usage

var gulp     = require('gulp'),
    scssLint = require('gulp-scss-lint'),
    stylish  = require('gulp-scss-lint-stylish2');
 
gulp.task('scss-lint', function()
{
    var reporter = stylish();

    gulp.src('/scss/*.scss')
        .pipe( scssLint({ customReport: reporter.issues }) )
        .pipe( reporter.printSummary );
});

Use errorsOnly parameter to filter out warnings:

    var reporter = stylish({ errorsOnly: true });

screenshot

You can list just the files:

        .pipe( scssLint({ customReport: reporter.files }) )
        .pipe( reporter.printSummary );

screenshot

... or suppress output and print just the summary:

        .pipe( scssLint({ customReport: reporter.silent }) )
        .pipe( reporter.printSummary );

screenshot