UNPKG

stylelint

Version:
30 lines (19 loc) 480 B
# custom-property-pattern Specify a pattern for custom properties. ```css a { --foo-bar: 1px; } /** ↑ * The pattern of this */ ``` ## Options `regex` or `string` A string will be translated into a RegExp like so `new RegExp(yourString)` — so be sure to escape properly. ### E.g. `/foo-.+/` The following patterns are considered warnings: ```css :root { --boo-bar: 0; } ``` The following patterns are *not* considered warnings: ```css :root { --foo-bar: 0; } ```