postcss / postcss.org

Official website for PostCSS
https://postcss.org
MIT License
80 stars 49 forks source link

margin-top example in Stylelint #229

Closed ai closed 7 years ago

ai commented 7 years ago

Current Stylelint example is very small and is not so powerful. On my talk about Stylelint most of listeners remembered their pain in this example:

.logo {
  margin-top: 10px;
  margin: 0 auto;
}

Second line overrides first one. I think everyone did this mistake and then spend a lot of times in debug.

Or maybe there is better example to show how Stylelint is powerful for everyone problems? @davidtheclark

davidtheclark commented 7 years ago

I think the current example with color-no-invalid-hex is pretty good. Your declaration-block-no-shorthand-property-overrides example is also good. Others to consider that are not about code style, since it seems that's what your interested in, are property-no-unknown, selector-class-pattern, and selector-no-id.

marcustisater commented 7 years ago

Closing this one