Predefined patterns

Rules enforcing patterns such as class-pattern and id-pattern takes one or more as option. This is a list of predefined patterns that can be used with such rules.

kebabcase

Matches strings with words separated by hyphen. Must start with a letter and cannot end with a hyphen. Multiple consecutive hyphens are not allowed.

camelcase

Matches strings with words the first letter of each word capitalized except the initial letter. Must start with a letter.

snakecase

Matches strings with words separated by underscore. Must start with a letter and cannot end with an underscore. Multiple consecutive underscores are not allowed.

bem

Matches string using BEM naming convention.