0

Here's an example:

.something {
  & > * {
    &:not(:first-child) {
      margin-right: 16px;
    }
    &:not(:last-child) {
      margin-left: 16px;
    }
  }
  &-element {
    & > * { /* Expected selector ".something-element > *" to come before selector ".something > *:not(:first-child)" (no-descending-specificity) */
      &:not(:first-child) {
        margin-top: 16px;
      }
      &:not(:last-child) {
        margin-bottom: 16px;
      }
    }
  }
}

My stylelint.config.json:

module.exports = {
  extends: ['stylelint-config-recommended-scss'],
};

How can I fix stylelint error? Or maybe it's bug?

K. Sedunov
  • 11
  • 5

0 Answers0