10up / 10up-toolkit

Official 10up asset building toolkit.
110 stars 20 forks source link

Stylelint pattern for `selector-nested-pattern` doesn't match valid selectors #416

Open fabiankaegy opened 1 month ago

fabiankaegy commented 1 month ago

The pattern we have in place for the selector-nested-pattern rule are not currently allowing :where( .something & ) selectors which are pretty important when you need to avoid overly specific styles. We should update the pattern to allow for these.

fabiankaegy commented 1 month ago

We discussed this in the Toolkit Working group. What we landed on is that we would look into potentially removing this check entirely because it is matching way too many false posives...

Alternatively we could update it to only error for attempts to use the & for string concatination which is not supported