diff --git a/.stylelintrc.json b/.stylelintrc.json index f3c908f..b22c849 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -50,7 +50,10 @@ } ], "selector-disallowed-list": [ - ["/(?:^|[\\s>+~])\\s*\\.-[a-z]/i"], + [ + "/(?+~])\\s*\\.-[a-z]/i", + "/(?:^|[\\s>+~])\\s*:(?:is|not|where|matches)\\(\\s*\\.-[a-z]/i" + ], { "message": "Modifier classes (starting with '-') must not be standalone selectors; always combine with a base class (e.g., .prefix-element.-modifier or &.-modifier in nested rules)", "severity": "error"