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 completely ignore

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

Copied to clipboard
Dodo Farming