Project

css-lint

0.0
No commit activity in last 3 years
No release in over 3 years
CSS linter for the modern day developer
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5
>= 0
 Project Readme

CSS Lint

A CSS linter for the modern day developer. Based on good practices and guidelines mentioned at:

Installation

gem install css-lint

Tests

General

  • Each declaration should appear on its own line.
  • Selectors must be on a new line, multiple selectors on a line are not allowed.
  • Lowercase all hex values, e.g. #eee.
  • Closing braces of declaration blocks on a new line.
  • Must end with a new line.

Whitespace, indentation and spacing

  • Use soft tabs with two spaces.
  • Include one space after the colon for each declaration.
  • End all declarations with a semi-colon.

Shorthand notation

  • Use shorthand hex values where available, e.g., #fff instead of #ffffff.

Selector names

  • Must use hyphens to separate words, not underscores or camel casing.

Contributing and reporting issues

If you find a bug, please create a new issue or if you are feeling a little more adventurous, pull requests and contributions are welcome!