Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 591 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 591 Bytes

custom-property-pattern

Specify a pattern for comments.

                  /*comment*/
                 /* ↑ */ a { --foo-: 1px; }
/**                 ↑
 * The pattern of this */

Options

regex

The pattern to match the comments with.

Given the regex:

/foo .+/

The following patterns are considered violations:

/*not starting with foo*/
a { color: red; }

The following patterns are not considered violations:

/*foo at the beginning*/
a { color: red; }