compass-csslint icon indicating copy to clipboard operation
compass-csslint copied to clipboard

Easily integrate CSS Lint into your projects that use the Compass CSS Framework

CSS Lint for Sass & Compass

Easily integrate Nicholas C. Zakas and Nicole Sullivan's CSS Lint into your projects that use the Compass CSS Framework by providing a compass csslint command line option.

Installation

Assuming ruby is installed on your system:

$ gem install compass-csslint

Note that this requires at least version 1.0.0.alpha.13 of Compass to work properly.

Usage

Run the following command from the root of your Compass project:

$ compass csslint

To view options:

$ compass csslint --help

Additional Links

For a bare-bones sample project to see this in action, checkout the compass-extensions-sample repo

To run CSS Lint without Compass, you can use the standalone ruby gem:

$ gem install css_lint_ruby
  • https://rubygems.org/gems/css_lint
  • https://github.com/Comcast/css_lint_ruby

Authors

  • John Riviello - https://github.com/JohnRiv
  • Mike Ball - https://github.com/mdb

Thanks for assistance and contributions:

  • Jen Valure - https://github.com/calophi
  • Mike Rottina - https://github.com/rottina