margin-top example in Stylelint #229

ai opened this Issue Jan 8, 2017 · 1 comment


None yet

2 participants

ai commented Jan 8, 2017

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


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment