Files
DeviceManager/node_modules/stylelint/lib/rules/comment-word-disallowed-list
..
2023-11-18 14:38:06 +01:00
2023-11-18 14:38:06 +01:00

comment-word-disallowed-list

Specify a list of disallowed words within comments.

 /* words within comments */
/** ↑     ↑      ↑
 * These three words */

Caveat: Comments within selector and value lists are currently ignored.

The message secondary option can accept the arguments of this rule.

Options

array|string|regexp: ["array", "of", "words", /or/, "/regex/"]|"word"|"/regex/"|/regex/

If a string is surrounded with "/" (e.g. "/^TODO:/"), it is interpreted as a regular expression.

Given:

["/^TODO:/", "badword"]

The following patterns are considered problems:

/* TODO: */
/* TODO: add fallback */
/* some badword */

The following patterns are not considered problems:

/* comment */