[build] add regex for stylelint/custom-property-pattern

Example: https://regex101.com/r/eITX54/1
This commit is contained in:
Zoë Bijl
2025-10-10 17:30:10 +02:00
parent 972624b360
commit a359bf4ab1
+1 -1
View File
@@ -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,