OpenLightingProject / rdm-app

Code for the rdm.openlighting.org site
http://rdm.openlighting.org
16 stars 11 forks source link

Add a CSS Linter #266

Closed peternewman closed 4 years ago

peternewman commented 4 years ago

To catch issues like:

I guess this file is not preprocessed since it's in the static folder? Then you should use /* … */ for comments, CSS doesn't support //.

_Originally posted by @FloEdelmann in https://github.com/OpenLightingProject/rdm-app/pull/265#discussion_r361483328_

FloEdelmann commented 4 years ago

There are basically two possible options:

  1. Stylelint (GitHub)
  2. CSS Lint (GitHub)

Stylelint is very flexible and has good defaults with the stylelint-config-standard, so it looks like the better choice to me. There is a good introductory article on CSS Tricks.