CSSLint for Less.


CSSLint for Less.

Install lesscsslint with npm to use the command line interface:

npm install -g lesscsslint

Validate a file like so:

lesscsslint myfile.less

or pipe input into stdin:

cat myfile.less | lesscsslint

lesscsslint will either report a syntax error with details or exit quietly.

$ lesscsslint --help

  Usage: lesscsslint [options] <files>


    -h, --help          output usage information
    -V, --version       output the version number
    --format <format>   Indicate which format to use for output.
    --errors <rules>    Indicate which CSSLint rules to include as errors.
    --warnings <rules>  Indicate which rules to include as warnings.
    --ignore <rules>    Indicate which rules to ignore completely.