eslint-plugin-jsdoc 46.4.6 → 46.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +31 -0
  2. package/dist/index.js +21 -10
  3. package/dist/index.js.map +1 -1
  4. package/package.json +14 -12
  5. package/dist/WarnSettings.d.ts +0 -17
  6. package/dist/WarnSettings.d.ts.map +0 -1
  7. package/dist/alignTransform.d.ts +0 -32
  8. package/dist/alignTransform.d.ts.map +0 -1
  9. package/dist/defaultTagOrder.d.ts +0 -5
  10. package/dist/defaultTagOrder.d.ts.map +0 -1
  11. package/dist/exportParser.d.ts +0 -41
  12. package/dist/exportParser.d.ts.map +0 -1
  13. package/dist/getDefaultTagStructureForMode.d.ts +0 -11
  14. package/dist/getDefaultTagStructureForMode.d.ts.map +0 -1
  15. package/dist/index.d.ts +0 -10
  16. package/dist/index.d.ts.map +0 -1
  17. package/dist/iterateJsdoc.d.ts +0 -460
  18. package/dist/iterateJsdoc.d.ts.map +0 -1
  19. package/dist/jsdocUtils.d.ts +0 -421
  20. package/dist/jsdocUtils.d.ts.map +0 -1
  21. package/dist/rules/checkAccess.d.ts +0 -3
  22. package/dist/rules/checkAccess.d.ts.map +0 -1
  23. package/dist/rules/checkAlignment.d.ts +0 -3
  24. package/dist/rules/checkAlignment.d.ts.map +0 -1
  25. package/dist/rules/checkExamples.d.ts +0 -4
  26. package/dist/rules/checkExamples.d.ts.map +0 -1
  27. package/dist/rules/checkIndentation.d.ts +0 -3
  28. package/dist/rules/checkIndentation.d.ts.map +0 -1
  29. package/dist/rules/checkLineAlignment.d.ts +0 -10
  30. package/dist/rules/checkLineAlignment.d.ts.map +0 -1
  31. package/dist/rules/checkParamNames.d.ts +0 -3
  32. package/dist/rules/checkParamNames.d.ts.map +0 -1
  33. package/dist/rules/checkPropertyNames.d.ts +0 -3
  34. package/dist/rules/checkPropertyNames.d.ts.map +0 -1
  35. package/dist/rules/checkSyntax.d.ts +0 -3
  36. package/dist/rules/checkSyntax.d.ts.map +0 -1
  37. package/dist/rules/checkTagNames.d.ts +0 -3
  38. package/dist/rules/checkTagNames.d.ts.map +0 -1
  39. package/dist/rules/checkTypes.d.ts +0 -3
  40. package/dist/rules/checkTypes.d.ts.map +0 -1
  41. package/dist/rules/checkValues.d.ts +0 -3
  42. package/dist/rules/checkValues.d.ts.map +0 -1
  43. package/dist/rules/emptyTags.d.ts +0 -3
  44. package/dist/rules/emptyTags.d.ts.map +0 -1
  45. package/dist/rules/implementsOnClasses.d.ts +0 -3
  46. package/dist/rules/implementsOnClasses.d.ts.map +0 -1
  47. package/dist/rules/importsAsDependencies.d.ts +0 -3
  48. package/dist/rules/importsAsDependencies.d.ts.map +0 -1
  49. package/dist/rules/informativeDocs.d.ts +0 -3
  50. package/dist/rules/informativeDocs.d.ts.map +0 -1
  51. package/dist/rules/matchDescription.d.ts +0 -3
  52. package/dist/rules/matchDescription.d.ts.map +0 -1
  53. package/dist/rules/matchName.d.ts +0 -3
  54. package/dist/rules/matchName.d.ts.map +0 -1
  55. package/dist/rules/multilineBlocks.d.ts +0 -3
  56. package/dist/rules/multilineBlocks.d.ts.map +0 -1
  57. package/dist/rules/noBadBlocks.d.ts +0 -3
  58. package/dist/rules/noBadBlocks.d.ts.map +0 -1
  59. package/dist/rules/noBlankBlockDescriptions.d.ts +0 -3
  60. package/dist/rules/noBlankBlockDescriptions.d.ts.map +0 -1
  61. package/dist/rules/noBlankBlocks.d.ts +0 -3
  62. package/dist/rules/noBlankBlocks.d.ts.map +0 -1
  63. package/dist/rules/noDefaults.d.ts +0 -3
  64. package/dist/rules/noDefaults.d.ts.map +0 -1
  65. package/dist/rules/noMissingSyntax.d.ts +0 -10
  66. package/dist/rules/noMissingSyntax.d.ts.map +0 -1
  67. package/dist/rules/noMultiAsterisks.d.ts +0 -3
  68. package/dist/rules/noMultiAsterisks.d.ts.map +0 -1
  69. package/dist/rules/noRestrictedSyntax.d.ts +0 -3
  70. package/dist/rules/noRestrictedSyntax.d.ts.map +0 -1
  71. package/dist/rules/noTypes.d.ts +0 -3
  72. package/dist/rules/noTypes.d.ts.map +0 -1
  73. package/dist/rules/noUndefinedTypes.d.ts +0 -3
  74. package/dist/rules/noUndefinedTypes.d.ts.map +0 -1
  75. package/dist/rules/requireAsteriskPrefix.d.ts +0 -3
  76. package/dist/rules/requireAsteriskPrefix.d.ts.map +0 -1
  77. package/dist/rules/requireDescription.d.ts +0 -3
  78. package/dist/rules/requireDescription.d.ts.map +0 -1
  79. package/dist/rules/requireDescriptionCompleteSentence.d.ts +0 -3
  80. package/dist/rules/requireDescriptionCompleteSentence.d.ts.map +0 -1
  81. package/dist/rules/requireExample.d.ts +0 -3
  82. package/dist/rules/requireExample.d.ts.map +0 -1
  83. package/dist/rules/requireFileOverview.d.ts +0 -3
  84. package/dist/rules/requireFileOverview.d.ts.map +0 -1
  85. package/dist/rules/requireHyphenBeforeParamDescription.d.ts +0 -3
  86. package/dist/rules/requireHyphenBeforeParamDescription.d.ts.map +0 -1
  87. package/dist/rules/requireJsdoc.d.ts +0 -9
  88. package/dist/rules/requireJsdoc.d.ts.map +0 -1
  89. package/dist/rules/requireParam.d.ts +0 -4
  90. package/dist/rules/requireParam.d.ts.map +0 -1
  91. package/dist/rules/requireParamDescription.d.ts +0 -3
  92. package/dist/rules/requireParamDescription.d.ts.map +0 -1
  93. package/dist/rules/requireParamName.d.ts +0 -3
  94. package/dist/rules/requireParamName.d.ts.map +0 -1
  95. package/dist/rules/requireParamType.d.ts +0 -3
  96. package/dist/rules/requireParamType.d.ts.map +0 -1
  97. package/dist/rules/requireProperty.d.ts +0 -3
  98. package/dist/rules/requireProperty.d.ts.map +0 -1
  99. package/dist/rules/requirePropertyDescription.d.ts +0 -3
  100. package/dist/rules/requirePropertyDescription.d.ts.map +0 -1
  101. package/dist/rules/requirePropertyName.d.ts +0 -3
  102. package/dist/rules/requirePropertyName.d.ts.map +0 -1
  103. package/dist/rules/requirePropertyType.d.ts +0 -3
  104. package/dist/rules/requirePropertyType.d.ts.map +0 -1
  105. package/dist/rules/requireReturns.d.ts +0 -3
  106. package/dist/rules/requireReturns.d.ts.map +0 -1
  107. package/dist/rules/requireReturnsCheck.d.ts +0 -3
  108. package/dist/rules/requireReturnsCheck.d.ts.map +0 -1
  109. package/dist/rules/requireReturnsDescription.d.ts +0 -3
  110. package/dist/rules/requireReturnsDescription.d.ts.map +0 -1
  111. package/dist/rules/requireReturnsType.d.ts +0 -3
  112. package/dist/rules/requireReturnsType.d.ts.map +0 -1
  113. package/dist/rules/requireThrows.d.ts +0 -3
  114. package/dist/rules/requireThrows.d.ts.map +0 -1
  115. package/dist/rules/requireYields.d.ts +0 -3
  116. package/dist/rules/requireYields.d.ts.map +0 -1
  117. package/dist/rules/requireYieldsCheck.d.ts +0 -3
  118. package/dist/rules/requireYieldsCheck.d.ts.map +0 -1
  119. package/dist/rules/sortTags.d.ts +0 -3
  120. package/dist/rules/sortTags.d.ts.map +0 -1
  121. package/dist/rules/tagLines.d.ts +0 -3
  122. package/dist/rules/tagLines.d.ts.map +0 -1
  123. package/dist/rules/textEscaping.d.ts +0 -3
  124. package/dist/rules/textEscaping.d.ts.map +0 -1
  125. package/dist/rules/validTypes.d.ts +0 -3
  126. package/dist/rules/validTypes.d.ts.map +0 -1
  127. package/dist/tagNames.d.ts +0 -16
  128. package/dist/tagNames.d.ts.map +0 -1
  129. package/dist/utils/hasReturnValue.d.ts +0 -20
  130. package/dist/utils/hasReturnValue.d.ts.map +0 -1
  131. package/docs/advanced.md +0 -102
  132. package/docs/rules/check-access.md +0 -193
  133. package/docs/rules/check-alignment.md +0 -169
  134. package/docs/rules/check-examples.md +0 -784
  135. package/docs/rules/check-indentation.md +0 -296
  136. package/docs/rules/check-line-alignment.md +0 -1002
  137. package/docs/rules/check-param-names.md +0 -1035
  138. package/docs/rules/check-property-names.md +0 -244
  139. package/docs/rules/check-syntax.md +0 -80
  140. package/docs/rules/check-tag-names.md +0 -1132
  141. package/docs/rules/check-types.md +0 -1198
  142. package/docs/rules/check-values.md +0 -409
  143. package/docs/rules/empty-tags.md +0 -220
  144. package/docs/rules/implements-on-classes.md +0 -219
  145. package/docs/rules/imports-as-dependencies.md +0 -99
  146. package/docs/rules/informative-docs.md +0 -400
  147. package/docs/rules/match-description.md +0 -1008
  148. package/docs/rules/match-name.md +0 -249
  149. package/docs/rules/multiline-blocks.md +0 -398
  150. package/docs/rules/no-bad-blocks.md +0 -174
  151. package/docs/rules/no-blank-block-descriptions.md +0 -91
  152. package/docs/rules/no-blank-blocks.md +0 -98
  153. package/docs/rules/no-defaults.md +0 -207
  154. package/docs/rules/no-missing-syntax.md +0 -275
  155. package/docs/rules/no-multi-asterisks.md +0 -278
  156. package/docs/rules/no-restricted-syntax.md +0 -383
  157. package/docs/rules/no-types.md +0 -168
  158. package/docs/rules/no-undefined-types.md +0 -789
  159. package/docs/rules/require-asterisk-prefix.md +0 -297
  160. package/docs/rules/require-description-complete-sentence.md +0 -820
  161. package/docs/rules/require-description.md +0 -585
  162. package/docs/rules/require-example.md +0 -390
  163. package/docs/rules/require-file-overview.md +0 -324
  164. package/docs/rules/require-hyphen-before-param-description.md +0 -281
  165. package/docs/rules/require-jsdoc.md +0 -1857
  166. package/docs/rules/require-param-description.md +0 -238
  167. package/docs/rules/require-param-name.md +0 -163
  168. package/docs/rules/require-param-type.md +0 -227
  169. package/docs/rules/require-param.md +0 -1820
  170. package/docs/rules/require-property-description.md +0 -88
  171. package/docs/rules/require-property-name.md +0 -79
  172. package/docs/rules/require-property-type.md +0 -79
  173. package/docs/rules/require-property.md +0 -128
  174. package/docs/rules/require-returns-check.md +0 -1053
  175. package/docs/rules/require-returns-description.md +0 -181
  176. package/docs/rules/require-returns-type.md +0 -144
  177. package/docs/rules/require-returns.md +0 -1191
  178. package/docs/rules/require-throws.md +0 -326
  179. package/docs/rules/require-yields-check.md +0 -544
  180. package/docs/rules/require-yields.md +0 -823
  181. package/docs/rules/sort-tags.md +0 -635
  182. package/docs/rules/tag-lines.md +0 -551
  183. package/docs/rules/text-escaping.md +0 -177
  184. package/docs/rules/valid-types.md +0 -881
  185. package/docs/settings.md +0 -362
  186. package/tsconfig-prod.json +0 -20
  187. package/tsconfig.json +0 -21
@@ -1,820 +0,0 @@
1
- <a name="user-content-require-description-complete-sentence"></a>
2
- <a name="require-description-complete-sentence"></a>
3
- # <code>require-description-complete-sentence</code>
4
-
5
- * [Fixer](#user-content-require-description-complete-sentence-fixer)
6
- * [Options](#user-content-require-description-complete-sentence-options)
7
- * [`tags`](#user-content-require-description-complete-sentence-options-tags)
8
- * [`abbreviations`](#user-content-require-description-complete-sentence-options-abbreviations)
9
- * [`newlineBeforeCapsAssumesBadSentenceEnd`](#user-content-require-description-complete-sentence-options-newlinebeforecapsassumesbadsentenceend)
10
- * [Context and settings](#user-content-require-description-complete-sentence-context-and-settings)
11
- * [Failing examples](#user-content-require-description-complete-sentence-failing-examples)
12
- * [Passing examples](#user-content-require-description-complete-sentence-passing-examples)
13
-
14
-
15
- Requires that block description, explicit `@description`, and
16
- `@param`/`@returns` tag descriptions are written in complete sentences, i.e.,
17
-
18
- * Description must start with an uppercase alphabetical character.
19
- * Paragraphs must start with an uppercase alphabetical character.
20
- * Sentences must end with a period, question mark, exclamation mark, or triple backticks.
21
- * Every line in a paragraph (except the first) which starts with an uppercase
22
- character must be preceded by a line ending with a period.
23
- * A colon or semi-colon followed by two line breaks is still part of the
24
- containing paragraph (unlike normal dual line breaks).
25
- * Text within inline tags `{...}` or within triple backticks are not checked for sentence divisions.
26
- * Periods after items within the `abbreviations` option array are not treated
27
- as sentence endings.
28
-
29
- <a name="user-content-require-description-complete-sentence-fixer"></a>
30
- <a name="require-description-complete-sentence-fixer"></a>
31
- ## Fixer
32
-
33
- If sentences do not end with terminal punctuation, a period will be added.
34
-
35
- If sentences do not start with an uppercase character, the initial
36
- letter will be capitalized.
37
-
38
- <a name="user-content-require-description-complete-sentence-options"></a>
39
- <a name="require-description-complete-sentence-options"></a>
40
- ## Options
41
-
42
- <a name="user-content-require-description-complete-sentence-options-tags"></a>
43
- <a name="require-description-complete-sentence-options-tags"></a>
44
- ### <code>tags</code>
45
-
46
- If you want additional tags to be checked for their descriptions, you may
47
- add them within this option.
48
-
49
- ```js
50
- {
51
- 'jsdoc/require-description-complete-sentence': ['error', {
52
- tags: ['see', 'copyright']
53
- }]
54
- }
55
- ```
56
-
57
- The tags `@param`/`@arg`/`@argument` and `@property`/`@prop` will be properly
58
- parsed to ensure that the checked "description" text includes only the text
59
- after the name.
60
-
61
- All other tags will treat the text following the tag name, a space, and
62
- an optional curly-bracketed type expression (and another space) as part of
63
- its "description" (e.g., for `@returns {someType} some description`, the
64
- description is `some description` while for `@some-tag xyz`, the description
65
- is `xyz`).
66
-
67
- <a name="user-content-require-description-complete-sentence-options-abbreviations"></a>
68
- <a name="require-description-complete-sentence-options-abbreviations"></a>
69
- ### <code>abbreviations</code>
70
-
71
- You can provide an `abbreviations` options array to avoid such strings of text
72
- being treated as sentence endings when followed by dots. The `.` is not
73
- necessary at the end of the array items.
74
-
75
- <a name="user-content-require-description-complete-sentence-options-newlinebeforecapsassumesbadsentenceend"></a>
76
- <a name="require-description-complete-sentence-options-newlinebeforecapsassumesbadsentenceend"></a>
77
- ### <code>newlineBeforeCapsAssumesBadSentenceEnd</code>
78
-
79
- When `false` (the new default), we will not assume capital letters after
80
- newlines are an incorrect way to end the sentence (they may be proper
81
- nouns, for example).
82
-
83
- <a name="user-content-require-description-complete-sentence-context-and-settings"></a>
84
- <a name="require-description-complete-sentence-context-and-settings"></a>
85
- ## Context and settings
86
-
87
- |||
88
- |---|---|
89
- |Context|everywhere|
90
- |Tags|doc block, `param`, `returns`, `description`, `property`, `summary`, `file`, `classdesc`, `todo`, `deprecated`, `throws`, 'yields' and others added by `tags`|
91
- |Aliases|`arg`, `argument`, `return`, `desc`, `prop`, `fileoverview`, `overview`, `exception`, `yield`|
92
- |Recommended|false|
93
- |Options|`abbreviations`, `newlineBeforeCapsAssumesBadSentenceEnd`, `tags`|
94
-
95
- <a name="user-content-require-description-complete-sentence-failing-examples"></a>
96
- <a name="require-description-complete-sentence-failing-examples"></a>
97
- ## Failing examples
98
-
99
- The following patterns are considered problems:
100
-
101
- ````js
102
- /**
103
- * foo.
104
- */
105
- function quux () {
106
-
107
- }
108
- // Message: Sentences should start with an uppercase character.
109
-
110
- /**
111
- * foo?
112
- */
113
- function quux () {
114
-
115
- }
116
- // Message: Sentences should start with an uppercase character.
117
-
118
- /**
119
- * @description foo.
120
- */
121
- function quux () {
122
-
123
- }
124
- // Message: Sentences should start with an uppercase character.
125
-
126
- /**
127
- * Foo)
128
- */
129
- function quux () {
130
-
131
- }
132
- // Message: Sentences must end with a period.
133
-
134
- /**
135
- * `foo` is a variable
136
- */
137
- function quux () {
138
-
139
- }
140
- // Message: Sentences must end with a period.
141
-
142
- /**
143
- * Foo.
144
- *
145
- * foo.
146
- */
147
- function quux () {
148
-
149
- }
150
- // Message: Sentences should start with an uppercase character.
151
-
152
- /**
153
- * тест.
154
- */
155
- function quux () {
156
-
157
- }
158
- // Message: Sentences should start with an uppercase character.
159
-
160
- /**
161
- * Foo
162
- */
163
- function quux () {
164
-
165
- }
166
- // Message: Sentences must end with a period.
167
-
168
- /**
169
- * Foo
170
- *
171
- * @param x
172
- */
173
- function quux () {
174
-
175
- }
176
- // Message: Sentences must end with a period.
177
-
178
- /**
179
- * Foo
180
- * Bar.
181
- */
182
- function quux () {
183
-
184
- }
185
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"newlineBeforeCapsAssumesBadSentenceEnd":true}]
186
- // Message: A line of text is started with an uppercase character, but the preceding line does not end the sentence.
187
-
188
- /**
189
- * Foo.
190
- *
191
- * @param foo foo.
192
- */
193
- function quux (foo) {
194
-
195
- }
196
- // Message: Sentences should start with an uppercase character.
197
-
198
- /**
199
- * Foo.
200
- *
201
- * @param foo bar
202
- */
203
- function quux (foo) {
204
-
205
- }
206
- // Message: Sentences should start with an uppercase character.
207
-
208
- /**
209
- * {@see Foo.bar} buz
210
- */
211
- function quux (foo) {
212
-
213
- }
214
- // Message: Sentences should start with an uppercase character.
215
-
216
- /**
217
- * Foo.
218
- *
219
- * @returns {number} foo
220
- */
221
- function quux (foo) {
222
-
223
- }
224
- // Message: Sentences should start with an uppercase character.
225
-
226
- /**
227
- * Foo.
228
- *
229
- * @returns foo.
230
- */
231
- function quux (foo) {
232
-
233
- }
234
- // Message: Sentences should start with an uppercase character.
235
-
236
- /**
237
- * lorem ipsum dolor sit amet, consectetur adipiscing elit. pellentesque elit diam,
238
- * iaculis eu dignissim sed, ultrices sed nisi. nulla at ligula auctor, consectetur neque sed,
239
- * tincidunt nibh. vivamus sit amet vulputate ligula. vivamus interdum elementum nisl,
240
- * vitae rutrum tortor semper ut. morbi porta ante vitae dictum fermentum.
241
- * proin ut nulla at quam convallis gravida in id elit. sed dolor mauris, blandit quis ante at,
242
- * consequat auctor magna. duis pharetra purus in porttitor mollis.
243
- */
244
- function longDescription (foo) {
245
-
246
- }
247
- // Message: Sentences should start with an uppercase character.
248
-
249
- /**
250
- * @arg {number} foo - Foo
251
- */
252
- function quux (foo) {
253
-
254
- }
255
- // Message: Sentences must end with a period.
256
-
257
- /**
258
- * @argument {number} foo - Foo
259
- */
260
- function quux (foo) {
261
-
262
- }
263
- // Message: Sentences must end with a period.
264
-
265
- /**
266
- * @return {number} foo
267
- */
268
- function quux (foo) {
269
-
270
- }
271
- // Message: Sentences should start with an uppercase character.
272
-
273
- /**
274
- * Returns bar.
275
- *
276
- * @return {number} bar
277
- */
278
- function quux (foo) {
279
-
280
- }
281
- // Message: Sentences should start with an uppercase character.
282
-
283
- /**
284
- * @throws {object} Hello World
285
- * hello world
286
- */
287
- // Message: Sentences must end with a period.
288
-
289
- /**
290
- * @summary Foo
291
- */
292
- function quux () {
293
-
294
- }
295
- // Message: Sentences must end with a period.
296
-
297
- /**
298
- * @throws {SomeType} Foo
299
- */
300
- function quux () {
301
-
302
- }
303
- // Message: Sentences must end with a period.
304
-
305
- /**
306
- * @see Foo
307
- */
308
- function quux () {
309
-
310
- }
311
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"tags":["see"]}]
312
- // Message: Sentences must end with a period.
313
-
314
- /**
315
- * @param foo Foo bar
316
- */
317
- function quux (foo) {
318
-
319
- }
320
- // Settings: {"jsdoc":{"tagNamePreference":{"description":false}}}
321
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"tags":["param"]}]
322
- // Message: Sentences must end with a period.
323
-
324
- /**
325
- * Sorry, but this isn't a complete sentence, Mr.
326
- */
327
- function quux () {
328
-
329
- }
330
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr"]}]
331
- // Message: Sentences must end with a period.
332
-
333
- /**
334
- * Sorry, but this isn't a complete sentence Mr.
335
- */
336
- function quux () {
337
-
338
- }
339
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr."]}]
340
- // Message: Sentences must end with a period.
341
-
342
- /**
343
- * Sorry, but this isn't a complete sentence Mr.
344
- */
345
- function quux () {
346
-
347
- }
348
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr"]}]
349
- // Message: Sentences must end with a period.
350
-
351
- /**
352
- * Sorry, but this isn't a complete sentence Mr. and Mrs.
353
- */
354
- function quux () {
355
-
356
- }
357
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr","Mrs"]}]
358
- // Message: Sentences must end with a period.
359
-
360
- /**
361
- * This is a complete sentence. But this isn't, Mr.
362
- */
363
- function quux () {
364
-
365
- }
366
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr"]}]
367
- // Message: Sentences must end with a period.
368
-
369
- /**
370
- * This is a complete Mr. sentence. But this isn't, Mr.
371
- */
372
- function quux () {
373
-
374
- }
375
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr"]}]
376
- // Message: Sentences must end with a period.
377
-
378
- /**
379
- * This is a complete Mr. sentence.
380
- */
381
- function quux () {
382
-
383
- }
384
- // Message: Sentences should start with an uppercase character.
385
-
386
- /**
387
- * This is fun, i.e. enjoyable, but not superlatively so, e.g. not
388
- * super, wonderful, etc..
389
- */
390
- function quux () {
391
-
392
- }
393
- // Message: Sentences should start with an uppercase character.
394
-
395
- /**
396
- * Do not have dynamic content; e.g. homepage. Here a simple unique id
397
- * suffices.
398
- */
399
- function quux () {
400
-
401
- }
402
- // Message: Sentences should start with an uppercase character.
403
-
404
- /**
405
- * Implements support for the
406
- * Swahili voice synthesizer.
407
- */
408
- function speak() {
409
- }
410
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"newlineBeforeCapsAssumesBadSentenceEnd":true}]
411
- // Message: A line of text is started with an uppercase character, but the preceding line does not end the sentence.
412
-
413
- /**
414
- * Foo.
415
- *
416
- * @template TempA, TempB foo.
417
- */
418
- function quux (foo) {
419
-
420
- }
421
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"tags":["template"]}]
422
- // Message: Sentences should start with an uppercase character.
423
-
424
- /**
425
- * Just a component.
426
- * @param {Object} props Свойства.
427
- * @return {ReactElement}.
428
- */
429
- function quux () {}
430
- // Message: Sentences must be more than punctuation.
431
- ````
432
-
433
-
434
-
435
- <a name="user-content-require-description-complete-sentence-passing-examples"></a>
436
- <a name="require-description-complete-sentence-passing-examples"></a>
437
- ## Passing examples
438
-
439
- The following patterns are not considered problems:
440
-
441
- ````js
442
- /**
443
- * @param foo - Foo.
444
- */
445
- function quux () {
446
-
447
- }
448
-
449
- /**
450
- * Foo.
451
- */
452
- function quux () {
453
-
454
- }
455
-
456
- /**
457
- * Foo.
458
- * Bar.
459
- */
460
- function quux () {
461
-
462
- }
463
-
464
- /**
465
- * Foo.
466
- *
467
- * Bar.
468
- */
469
- function quux () {
470
-
471
- }
472
-
473
- /**
474
- * Тест.
475
- */
476
- function quux () {
477
-
478
- }
479
-
480
- /**
481
- * Foo
482
- * bar.
483
- */
484
- function quux () {
485
-
486
- }
487
-
488
- /**
489
- * @returns Foo bar.
490
- */
491
- function quux () {
492
-
493
- }
494
-
495
- /**
496
- * Foo {@see Math.sin}.
497
- */
498
- function quux () {
499
-
500
- }
501
-
502
- /**
503
- * Foo {@see Math.sin} bar.
504
- */
505
- function quux () {
506
-
507
- }
508
-
509
- /**
510
- * Foo?
511
- *
512
- * Bar!
513
- *
514
- * Baz:
515
- * 1. Foo.
516
- * 2. Bar.
517
- */
518
- function quux () {
519
-
520
- }
521
-
522
- /**
523
- * Hello:
524
- * World.
525
- */
526
- function quux () {
527
-
528
- }
529
-
530
- /**
531
- * Hello: world.
532
- */
533
- function quux () {
534
-
535
- }
536
-
537
- /**
538
- *
539
- */
540
- function quux () {
541
-
542
- }
543
-
544
- /**
545
- * @description Foo.
546
- */
547
- function quux () {
548
-
549
- }
550
-
551
- /**
552
- * `foo` is a variable.
553
- */
554
- function quux () {
555
-
556
- }
557
-
558
- /**
559
- * Foo.
560
- *
561
- * `foo`.
562
- */
563
- function quux () {
564
-
565
- }
566
-
567
- /**
568
- * @param foo - `bar`.
569
- */
570
- function quux () {
571
-
572
- }
573
-
574
- /**
575
- * @returns {number} `foo`.
576
- */
577
- function quux () {
578
-
579
- }
580
-
581
- /**
582
- * Foo
583
- * `bar`.
584
- */
585
- function quux () {
586
-
587
- }
588
-
589
- /**
590
- * @example Foo
591
- */
592
- function quux () {
593
-
594
- }
595
-
596
- /**
597
- * @see Foo
598
- */
599
- function quux () {
600
-
601
- }
602
-
603
- /**
604
- * Foo.
605
- *
606
- * @param foo Foo.
607
- */
608
- function quux (foo) {
609
-
610
- }
611
-
612
- /**
613
- * Foo.
614
- *
615
- * @param foo Foo.
616
- */
617
- function quux (foo) {
618
-
619
- }
620
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"tags":["param"]}]
621
-
622
- /**
623
- * @param foo Foo bar.
624
- */
625
- function quux (foo) {
626
-
627
- }
628
- // Settings: {"jsdoc":{"tagNamePreference":{"description":false}}}
629
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"tags":["param"]}]
630
-
631
- /**
632
- *
633
- */
634
- function quux (foo) {
635
-
636
- }
637
- // Settings: {"jsdoc":{"tagNamePreference":{"description":false}}}
638
-
639
- /**
640
- * We stop loading Items when we have loaded:
641
- *
642
- * 1) The main Item;
643
- * 2) All its variants.
644
- */
645
-
646
- /**
647
- * This method is working on 2 steps.
648
- *
649
- * | Step | Comment |
650
- * |------|-------------|
651
- * | 1 | do it |
652
- * | 2 | do it again |
653
- */
654
-
655
- /**
656
- * This is something that
657
- * I want to test.
658
- */
659
- function quux () {
660
-
661
- }
662
-
663
- /**
664
- * When making HTTP requests, the
665
- * URL is super important.
666
- */
667
- function quux () {
668
-
669
- }
670
-
671
- /**
672
- * Sorry, but this isn't a complete sentence, Mr.
673
- */
674
- function quux () {
675
-
676
- }
677
-
678
- /**
679
- * Sorry, but this isn't a complete sentence Mr..
680
- */
681
- function quux () {
682
-
683
- }
684
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr."]}]
685
-
686
- /**
687
- * Sorry, but this isn't a complete sentence Mr.
688
- */
689
- function quux () {
690
-
691
- }
692
-
693
- /**
694
- * Sorry, but this isn't a complete sentence Mr. and Mrs..
695
- */
696
- function quux () {
697
-
698
- }
699
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr","Mrs"]}]
700
-
701
- /**
702
- * This is a complete sentence aMr.
703
- */
704
- function quux () {
705
-
706
- }
707
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr"]}]
708
-
709
- /**
710
- * This is a complete sentence. But this isn't, Mr.
711
- */
712
- function quux () {
713
-
714
- }
715
-
716
- /**
717
- * This is a complete Mr. Sentence. But this isn't, Mr.
718
- */
719
- function quux () {
720
-
721
- }
722
-
723
- /**
724
- * This is a complete Mr. sentence.
725
- */
726
- function quux () {
727
-
728
- }
729
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["Mr"]}]
730
-
731
- /**
732
- * This is fun, i.e. enjoyable, but not superlatively so, e.g. not
733
- * super, wonderful, etc..
734
- */
735
- function quux () {
736
-
737
- }
738
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["etc","e.g.","i.e."]}]
739
-
740
-
741
- **
742
- * Do not have dynamic content; e.g. homepage. Here a simple unique id
743
- * suffices.
744
- */
745
- function quux () {
746
-
747
- }
748
- // "jsdoc/require-description-complete-sentence": ["error"|"warn", {"abbreviations":["etc","e.g.","i.e."]}]
749
-
750
- /**
751
- * Implements support for the
752
- * Swahili voice synthesizer.
753
- */
754
- function speak() {
755
- }
756
-
757
- /**
758
- * @param foo
759
- *
760
- * @returns {void}
761
- */
762
- export default (foo) => {
763
- foo()
764
- }
765
-
766
- /** @file To learn more,
767
- * see: https://github.com/d3/d3-ease. */
768
-
769
- /** To learn more,
770
- * see: https://github.com/d3/d3-ease. */
771
-
772
- /**
773
- * This is a complete sentence...
774
- */
775
- function quux () {
776
-
777
- }
778
-
779
- /**
780
- * He wanted a few items: a jacket and shirt...
781
- */
782
- function quux () {
783
-
784
- }
785
-
786
- /**
787
- * The code in question was...
788
- * ```
789
- * alert('hello');
790
- * ```
791
- */
792
- function quux () {
793
-
794
- }
795
-
796
- /**
797
- * @param {number|string|Date|Object|OverType|WhateverElse} multiType -
798
- * Nice long explanation...
799
- */
800
- function test (multiType) {
801
- }
802
-
803
- /**
804
- * Any kind of fowl (e.g., a duck).
805
- */
806
- function quux () {}
807
-
808
- /**
809
- * The code in question was...
810
- * ```
811
- * do something
812
- *
813
- * interesting
814
- * ```
815
- */
816
- function quux () {
817
-
818
- }
819
- ````
820
-