Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-csslint-sourcemap-reporter with all npm packages installed. Try it out:

var gulpCsslintSourcemapReporter = require("gulp-csslint-sourcemap-reporter")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-csslint-sourcemap-reporter v0.1.1

Console reporter adjusting error location by source map for the gulp-csslint module (https://www.npmjs.org/package/gulp-csslint)

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free