csslint

csslint

TLDR

Lint a single CSS file

$ csslint [file.css]
copy

Lint multiple CSS files

$ csslint [file1.css] [file2.css] [file3.css]
copy

List all possible style rules

$ csslint --list-rules
copy

Specify certain rules as errors (which result in a non-zero exit code)

$ csslint --errors=[errors,universal-selector,imports] [file.css]
copy

Specify certain rules as warnings

$ csslint --warnings=[box-sizing,selector-max,floats] [file.css]
copy

Specify certain rules to ignore

$ csslint --ignore=[ids,rules-count,shorthand] [file.css]
copy

Help

Usage: csslint-rhino.js [options]* [file|dir]* 
 
Global Options 
  --help                                   Displays this information. 
  --format=                        Indicate which format to use for output. 
  --list-rules                             Outputs all of the rules available. 
  --quiet                                  Only output when errors are present. 
  --errors=                  Indicate which rules to include as errors. 
  --warnings=                Indicate which rules to include as warnings. 
  --ignore=                  Indicate which rules to ignore completely. 
  --exclude-list=    Indicate which files/directories to exclude from being linted. 
  --config=                          Reads csslint options from specified file. 
  --version                                Outputs the current version number. 

Copied to clipboard
snescontroller