UNPKG

844 BMarkdownView Raw
1# comment-word-disallowed-list
2
3Specify a list of disallowed words within comments.
4
5<!-- prettier-ignore -->
6```css
7 /* words within comments */
8/** ↑ ↑ ↑
9 * These three words */
10```
11
12**Caveat:** Comments within _selector and value lists_ are currently ignored.
13
14## Options
15
16`array|string|regexp`: `["array", "of", "words", /or/, "/regex/"]|"word"|"/regex/"`
17
18If a string is surrounded with `"/"` (e.g. `"/^TODO:/"`), it is interpreted as a regular expression.
19
20Given:
21
22```
23["/^TODO:/", "badword"]
24```
25
26The following patterns are considered violations:
27
28<!-- prettier-ignore -->
29```css
30/* TODO: */
31```
32
33<!-- prettier-ignore -->
34```css
35/* TODO: add fallback */
36```
37
38<!-- prettier-ignore -->
39```css
40/* some badword */
41```
42
43The following patterns are _not_ considered violations:
44
45<!-- prettier-ignore -->
46```css
47/* comment */
48```