From a359bf4ab131682f298d6572f1ffd442bb835043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoe=CC=88=20Bijl?= Date: Fri, 10 Oct 2025 17:30:10 +0200 Subject: [PATCH] [build] add regex for stylelint/custom-property-pattern Example: https://regex101.com/r/eITX54/1 --- stylelint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylelint.config.js b/stylelint.config.js index a64bbe7fc..33ef48057 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -26,7 +26,7 @@ module.exports = { "after-comment" ] }], - 'custom-property-pattern': null, // should be kebab-case, except for status, ex: --color-ui--hover + 'custom-property-pattern': '(([a-z]+)(-[a-z]+)*([-]{2}[a-z]+(-[a-z]+)?)?)', // allows kebab-case and kebab-case--state "declaration-block-no-redundant-longhand-properties": null, "no-descending-specificity": null, "no-duplicate-selectors": null,