Skip to main content

comment-word-disallowed-list

指定注释中禁止使用的单词列表。

¥Specify a list of disallowed words within comments.

 /* words within comments */
/** ↑ ↑ ↑

* These three words */

[!WARNING] 选择器和值列表中的注释当前被忽略。

¥[!WARNING] Comments within selector and value lists are currently ignored.

message 次要选项 可以接受该规则的参数。

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

选项

¥Options

Array<string>

["array", "of", "words", "/regex/"]

鉴于:

¥Given:

{
"comment-word-disallowed-list": ["/^TODO:/", "badword"]
}

以下模式被视为问题:

¥The following patterns are considered problems:

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

以下模式不被视为问题:

¥The following patterns are not considered problems:

/* comment */