Stylelint: disable certain rules? Issue with no-descending-specificity

Ah yes, the good old descending specificity rule can cause depressions sometimes,
I disable it using stylelint comments:

/* stylelint-disable no-descending-specificity */
// your styles
/* stylelint-enable no-descending-specificity */

Sometimes it already helps to split up the styles, e.g. I use a style file for each Gutenberg block type and even for each block style of block type.

4 Likes