Console reporter adjusting error location by source map for the gulp-csslint module (https://www.npmjs.org/package/gulp-csslint)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.eslintrc
.gitignore
README.markdown
index.js
package.json

README.markdown

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