comment-pattern
Specify a pattern for comments.
/* comment *//** ↑ * The pattern of this */Use this rule to enforce a convention. For example, require ^[A-Z], so that comments read as sentences.
This rule supports 1 message argument: the configured pattern.
Options
Section titled “Options”string
Section titled “string”Specify a regex string not surrounded with "/".
Given:
{ "comment-pattern": "foo .+"}The following patterns are considered problems:
/*not starting with foo*/a { color: red; }The following patterns are not considered problems:
/*foo at the beginning*/a { color: red; }