node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

gulp-csslint-sourcemap-reporter

gulp-csslint-sourcemap-reporter

Console reporter adjusting error locations by the source map.

Install

First, install gulp-csslint, gulp-sourcemaps, gulp-csslint-sourcemap-reporter as a development dependency:

npm install --save-dev gulp-csslint-sourcemap-reporter

Then, add it to your gulpfile.js.

Examples

Less

gulp.src('less/**/*.less'))
    .pipe(sourcemaps.init()) // Attach source maps 
    .pipe(sass())            // Compile SCSS 
    .pipe(csslint())         // Check the compiled code! 
    .pipe(csslint.reporter(sourcemapReporter)); // Report with adjusted location 

SCSS

gulp.src('less/**/*.less'))
    .pipe(sourcemaps.init()) // Attach source maps 
    .pipe(sass())            // Compile SCSS 
    .pipe(csslint())         // Check the compiled code! 
    .pipe(csslint.reporter(sourcemapReporter)); // Report with adjusted location 

License

MIT