ideasonpurpose / developer-guidelines

Defining a common technical baseline for projects produced at Ideas On Purpose
1 stars 0 forks source link

Switch from CSSComb to StyleLint with Prettier #1

Open joemaller opened 8 years ago

joemaller commented 8 years ago

Tried it out years ago, taking another look now. Seems like it could make CSS maintenance much faster by clarifying rules.

http://csscomb.com/

Not sure yet which of the default property sort-order configs I like best yet, will probably end up pulling bits and pieces from several.

joemaller commented 8 years ago

My preferred property order is similar to Idiomatic CSS or the example in this CSS-Tricks post:

joemaller commented 8 years ago

Another possible option: https://github.com/hudochenkov/postcss-sorting

Seems more actively developed than CSSComb, but with a smaller user base. Configs don't appear to be as portable though, it'd be nice to just drop a dotfile in a repo and forget about it.