Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Deprecated: Instead use the comment-word-disallowed-list
rule.
Specify a list of disallowed words within comments.
/* words within comments */
/** ↑ ↑ ↑
* These three words */
Caveat: Comments within selector and value lists are currently ignored.
array|string|regexp
: ["array", "of", "words", /or/, "/regex/"]|"word"|"/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 violations:
/* TODO: */
/* TODO: add fallback */
/* some badword */
The following patterns are not considered violations:
/* comment */