iamstarkov / gulp-csscomb-lint

Gulp plugin for linting css files with CSScomb
7 stars 4 forks source link

gulp-csscomb-lint

Lint CSS coding style with CSScomb.

Installation

Install via npm:

npm i --save-dev gulp-csscomb-lint

Usage

var gulp = require('gulp');
var csscombLint = require('gulp-csscomb-lint');

gulp.task('lint', function() {
    return gulp.src(['/css/*.css'])
        .pipe(csscombLint());
});

Options

If there is .csscomb.json file present in the same folder as the source file(s), or in the project root folder, gulp-csscomb-lint will read config settings from it instead of default config.

You can also specify a pre-defined configuration. Ex.: csscomb('zen')

License

MIT (c) 2014 Vladimir Starkov.