hudochenkov / stylelint-order

A plugin pack of order related linting rules for Stylelint.
MIT License
916 stars 61 forks source link

Define a skeleton for what is defined inside a selector #169

Closed Scipionh closed 1 year ago

Scipionh commented 1 year ago

I would like to force the content of my selector to always follow the following skeleton;

1) Properties 2) Pseudo classes 3) Pseudo elements 4) Class/id/attribute modifiers (by instance &.is-error, ...) 5) Sibling selectors 6) Descendant selectors

I don't think there is a way to implement that yet with this plugin. Is that something that could be considered ?

hudochenkov commented 1 year ago

You may try to achieve this with extended rule objects. You'll have to write a lot of RegEx.