1

Let's say I have a class: myclass__button-create--success.

I want to limit the usage of -create part in:

.myclass__button {
  &-create {
  }
}

As it's not a new block, element or modifier. Allowed structures:

.myclass__button-create {
  &--success {
  }
}

.myclass {
  &__button-create {
  }
}

.myclass__button-create--success {
}

Any idea how to achieve this restriction using sass-lint?

BobTheBuilder
  • 18,858
  • 6
  • 40
  • 61

0 Answers0