stylelint-declaration-strict-value
stylelint-declaration-strict-value copied to clipboard
Ignore functions regex
I would like to allow certain functions like color-mix, but it seems the current ignoreFunction option is not flexible enough.
This should be flagged:
color: rgb(255 0 0);
This should be allowed:
color: color-mix(in srgb, var(--color-red), var(--color-blue));
Maybe have an ignoreFunctionRegex: /^color-mix$/ option?
I would also like this option, and you could probably re-use the same keyword, like for "ignoreValues"
Something like this:
"ignoreFunctions": {
"": false,
"/RegExp/[darken]": true,
"/RegExp/[lighten]": true
},