Git Product home page Git Product logo

gulp-csscomb-lint's Introduction

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.

gulp-csscomb-lint's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gulp-csscomb-lint's Issues

Allow for Less/Sass checking

I use a .csscomb.json file for formatting in one of my projects, and auto-formatters work with Less files, in specific, this linter fails on Less comments:

/path/to/project/node_modules/csscomb-core/lib/core.js:412
            throw e;
            ^
/path/to/project/src/less/app.less
Please check the validity of the block starting from line #3

1 | @import 'global-styles/main';
3*| // Colors
5 | @dark-blue:#18364c;

Gonzales PE version: 3.0.0-10
CSScomb Core version: 2.0.4

I'm running Mac OS X Yosemite, Node 5.3.0, Gulp 3.9.0

Not processing/logging any errors

I tried using this task twice and it’s not working for me:

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

There is a .csscomb.json in the main directory and running gulp lint just returns

gulp lint                                                                                                                                        [21:23:06] Using gulpfile /var/www/js/boilerplate/gulpfile.js
[21:23:06] Starting 'lint'...
[21:23:06] Finished 'lint' after 171 ms

Although there are definitely some mistakes in the css file (csscomb dist/css/style.css changes the file).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.