This rule template can be used to create rules which will be triggered when a function matches a given regular expression.

For example, one can create a rule with the regular expression (counter|ease) to match counter and ease functions (to warn developers not to use them for some reasons for instance).

Note that, in order to match counter and ease functions regardless of the case, the (?i) modifier can be prepended to the expression, as in (?i)(counter|ease).

See Java documentation for detailed regular expression syntax.

stylelint Related Rules