eslint-plugin-jsdoc 46.4.6 → 46.5.1

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 (191) 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/dist/jsdocUtils.js +1 -1
  5. package/dist/jsdocUtils.js.map +1 -1
  6. package/dist/rules/matchDescription.js +1 -1
  7. package/dist/rules/matchDescription.js.map +1 -1
  8. package/package.json +14 -12
  9. package/dist/WarnSettings.d.ts +0 -17
  10. package/dist/WarnSettings.d.ts.map +0 -1
  11. package/dist/alignTransform.d.ts +0 -32
  12. package/dist/alignTransform.d.ts.map +0 -1
  13. package/dist/defaultTagOrder.d.ts +0 -5
  14. package/dist/defaultTagOrder.d.ts.map +0 -1
  15. package/dist/exportParser.d.ts +0 -41
  16. package/dist/exportParser.d.ts.map +0 -1
  17. package/dist/getDefaultTagStructureForMode.d.ts +0 -11
  18. package/dist/getDefaultTagStructureForMode.d.ts.map +0 -1
  19. package/dist/index.d.ts +0 -10
  20. package/dist/index.d.ts.map +0 -1
  21. package/dist/iterateJsdoc.d.ts +0 -460
  22. package/dist/iterateJsdoc.d.ts.map +0 -1
  23. package/dist/jsdocUtils.d.ts +0 -421
  24. package/dist/jsdocUtils.d.ts.map +0 -1
  25. package/dist/rules/checkAccess.d.ts +0 -3
  26. package/dist/rules/checkAccess.d.ts.map +0 -1
  27. package/dist/rules/checkAlignment.d.ts +0 -3
  28. package/dist/rules/checkAlignment.d.ts.map +0 -1
  29. package/dist/rules/checkExamples.d.ts +0 -4
  30. package/dist/rules/checkExamples.d.ts.map +0 -1
  31. package/dist/rules/checkIndentation.d.ts +0 -3
  32. package/dist/rules/checkIndentation.d.ts.map +0 -1
  33. package/dist/rules/checkLineAlignment.d.ts +0 -10
  34. package/dist/rules/checkLineAlignment.d.ts.map +0 -1
  35. package/dist/rules/checkParamNames.d.ts +0 -3
  36. package/dist/rules/checkParamNames.d.ts.map +0 -1
  37. package/dist/rules/checkPropertyNames.d.ts +0 -3
  38. package/dist/rules/checkPropertyNames.d.ts.map +0 -1
  39. package/dist/rules/checkSyntax.d.ts +0 -3
  40. package/dist/rules/checkSyntax.d.ts.map +0 -1
  41. package/dist/rules/checkTagNames.d.ts +0 -3
  42. package/dist/rules/checkTagNames.d.ts.map +0 -1
  43. package/dist/rules/checkTypes.d.ts +0 -3
  44. package/dist/rules/checkTypes.d.ts.map +0 -1
  45. package/dist/rules/checkValues.d.ts +0 -3
  46. package/dist/rules/checkValues.d.ts.map +0 -1
  47. package/dist/rules/emptyTags.d.ts +0 -3
  48. package/dist/rules/emptyTags.d.ts.map +0 -1
  49. package/dist/rules/implementsOnClasses.d.ts +0 -3
  50. package/dist/rules/implementsOnClasses.d.ts.map +0 -1
  51. package/dist/rules/importsAsDependencies.d.ts +0 -3
  52. package/dist/rules/importsAsDependencies.d.ts.map +0 -1
  53. package/dist/rules/informativeDocs.d.ts +0 -3
  54. package/dist/rules/informativeDocs.d.ts.map +0 -1
  55. package/dist/rules/matchDescription.d.ts +0 -3
  56. package/dist/rules/matchDescription.d.ts.map +0 -1
  57. package/dist/rules/matchName.d.ts +0 -3
  58. package/dist/rules/matchName.d.ts.map +0 -1
  59. package/dist/rules/multilineBlocks.d.ts +0 -3
  60. package/dist/rules/multilineBlocks.d.ts.map +0 -1
  61. package/dist/rules/noBadBlocks.d.ts +0 -3
  62. package/dist/rules/noBadBlocks.d.ts.map +0 -1
  63. package/dist/rules/noBlankBlockDescriptions.d.ts +0 -3
  64. package/dist/rules/noBlankBlockDescriptions.d.ts.map +0 -1
  65. package/dist/rules/noBlankBlocks.d.ts +0 -3
  66. package/dist/rules/noBlankBlocks.d.ts.map +0 -1
  67. package/dist/rules/noDefaults.d.ts +0 -3
  68. package/dist/rules/noDefaults.d.ts.map +0 -1
  69. package/dist/rules/noMissingSyntax.d.ts +0 -10
  70. package/dist/rules/noMissingSyntax.d.ts.map +0 -1
  71. package/dist/rules/noMultiAsterisks.d.ts +0 -3
  72. package/dist/rules/noMultiAsterisks.d.ts.map +0 -1
  73. package/dist/rules/noRestrictedSyntax.d.ts +0 -3
  74. package/dist/rules/noRestrictedSyntax.d.ts.map +0 -1
  75. package/dist/rules/noTypes.d.ts +0 -3
  76. package/dist/rules/noTypes.d.ts.map +0 -1
  77. package/dist/rules/noUndefinedTypes.d.ts +0 -3
  78. package/dist/rules/noUndefinedTypes.d.ts.map +0 -1
  79. package/dist/rules/requireAsteriskPrefix.d.ts +0 -3
  80. package/dist/rules/requireAsteriskPrefix.d.ts.map +0 -1
  81. package/dist/rules/requireDescription.d.ts +0 -3
  82. package/dist/rules/requireDescription.d.ts.map +0 -1
  83. package/dist/rules/requireDescriptionCompleteSentence.d.ts +0 -3
  84. package/dist/rules/requireDescriptionCompleteSentence.d.ts.map +0 -1
  85. package/dist/rules/requireExample.d.ts +0 -3
  86. package/dist/rules/requireExample.d.ts.map +0 -1
  87. package/dist/rules/requireFileOverview.d.ts +0 -3
  88. package/dist/rules/requireFileOverview.d.ts.map +0 -1
  89. package/dist/rules/requireHyphenBeforeParamDescription.d.ts +0 -3
  90. package/dist/rules/requireHyphenBeforeParamDescription.d.ts.map +0 -1
  91. package/dist/rules/requireJsdoc.d.ts +0 -9
  92. package/dist/rules/requireJsdoc.d.ts.map +0 -1
  93. package/dist/rules/requireParam.d.ts +0 -4
  94. package/dist/rules/requireParam.d.ts.map +0 -1
  95. package/dist/rules/requireParamDescription.d.ts +0 -3
  96. package/dist/rules/requireParamDescription.d.ts.map +0 -1
  97. package/dist/rules/requireParamName.d.ts +0 -3
  98. package/dist/rules/requireParamName.d.ts.map +0 -1
  99. package/dist/rules/requireParamType.d.ts +0 -3
  100. package/dist/rules/requireParamType.d.ts.map +0 -1
  101. package/dist/rules/requireProperty.d.ts +0 -3
  102. package/dist/rules/requireProperty.d.ts.map +0 -1
  103. package/dist/rules/requirePropertyDescription.d.ts +0 -3
  104. package/dist/rules/requirePropertyDescription.d.ts.map +0 -1
  105. package/dist/rules/requirePropertyName.d.ts +0 -3
  106. package/dist/rules/requirePropertyName.d.ts.map +0 -1
  107. package/dist/rules/requirePropertyType.d.ts +0 -3
  108. package/dist/rules/requirePropertyType.d.ts.map +0 -1
  109. package/dist/rules/requireReturns.d.ts +0 -3
  110. package/dist/rules/requireReturns.d.ts.map +0 -1
  111. package/dist/rules/requireReturnsCheck.d.ts +0 -3
  112. package/dist/rules/requireReturnsCheck.d.ts.map +0 -1
  113. package/dist/rules/requireReturnsDescription.d.ts +0 -3
  114. package/dist/rules/requireReturnsDescription.d.ts.map +0 -1
  115. package/dist/rules/requireReturnsType.d.ts +0 -3
  116. package/dist/rules/requireReturnsType.d.ts.map +0 -1
  117. package/dist/rules/requireThrows.d.ts +0 -3
  118. package/dist/rules/requireThrows.d.ts.map +0 -1
  119. package/dist/rules/requireYields.d.ts +0 -3
  120. package/dist/rules/requireYields.d.ts.map +0 -1
  121. package/dist/rules/requireYieldsCheck.d.ts +0 -3
  122. package/dist/rules/requireYieldsCheck.d.ts.map +0 -1
  123. package/dist/rules/sortTags.d.ts +0 -3
  124. package/dist/rules/sortTags.d.ts.map +0 -1
  125. package/dist/rules/tagLines.d.ts +0 -3
  126. package/dist/rules/tagLines.d.ts.map +0 -1
  127. package/dist/rules/textEscaping.d.ts +0 -3
  128. package/dist/rules/textEscaping.d.ts.map +0 -1
  129. package/dist/rules/validTypes.d.ts +0 -3
  130. package/dist/rules/validTypes.d.ts.map +0 -1
  131. package/dist/tagNames.d.ts +0 -16
  132. package/dist/tagNames.d.ts.map +0 -1
  133. package/dist/utils/hasReturnValue.d.ts +0 -20
  134. package/dist/utils/hasReturnValue.d.ts.map +0 -1
  135. package/docs/advanced.md +0 -102
  136. package/docs/rules/check-access.md +0 -193
  137. package/docs/rules/check-alignment.md +0 -169
  138. package/docs/rules/check-examples.md +0 -784
  139. package/docs/rules/check-indentation.md +0 -296
  140. package/docs/rules/check-line-alignment.md +0 -1002
  141. package/docs/rules/check-param-names.md +0 -1035
  142. package/docs/rules/check-property-names.md +0 -244
  143. package/docs/rules/check-syntax.md +0 -80
  144. package/docs/rules/check-tag-names.md +0 -1132
  145. package/docs/rules/check-types.md +0 -1198
  146. package/docs/rules/check-values.md +0 -409
  147. package/docs/rules/empty-tags.md +0 -220
  148. package/docs/rules/implements-on-classes.md +0 -219
  149. package/docs/rules/imports-as-dependencies.md +0 -99
  150. package/docs/rules/informative-docs.md +0 -400
  151. package/docs/rules/match-description.md +0 -1008
  152. package/docs/rules/match-name.md +0 -249
  153. package/docs/rules/multiline-blocks.md +0 -398
  154. package/docs/rules/no-bad-blocks.md +0 -174
  155. package/docs/rules/no-blank-block-descriptions.md +0 -91
  156. package/docs/rules/no-blank-blocks.md +0 -98
  157. package/docs/rules/no-defaults.md +0 -207
  158. package/docs/rules/no-missing-syntax.md +0 -275
  159. package/docs/rules/no-multi-asterisks.md +0 -278
  160. package/docs/rules/no-restricted-syntax.md +0 -383
  161. package/docs/rules/no-types.md +0 -168
  162. package/docs/rules/no-undefined-types.md +0 -789
  163. package/docs/rules/require-asterisk-prefix.md +0 -297
  164. package/docs/rules/require-description-complete-sentence.md +0 -820
  165. package/docs/rules/require-description.md +0 -585
  166. package/docs/rules/require-example.md +0 -390
  167. package/docs/rules/require-file-overview.md +0 -324
  168. package/docs/rules/require-hyphen-before-param-description.md +0 -281
  169. package/docs/rules/require-jsdoc.md +0 -1857
  170. package/docs/rules/require-param-description.md +0 -238
  171. package/docs/rules/require-param-name.md +0 -163
  172. package/docs/rules/require-param-type.md +0 -227
  173. package/docs/rules/require-param.md +0 -1820
  174. package/docs/rules/require-property-description.md +0 -88
  175. package/docs/rules/require-property-name.md +0 -79
  176. package/docs/rules/require-property-type.md +0 -79
  177. package/docs/rules/require-property.md +0 -128
  178. package/docs/rules/require-returns-check.md +0 -1053
  179. package/docs/rules/require-returns-description.md +0 -181
  180. package/docs/rules/require-returns-type.md +0 -144
  181. package/docs/rules/require-returns.md +0 -1191
  182. package/docs/rules/require-throws.md +0 -326
  183. package/docs/rules/require-yields-check.md +0 -544
  184. package/docs/rules/require-yields.md +0 -823
  185. package/docs/rules/sort-tags.md +0 -635
  186. package/docs/rules/tag-lines.md +0 -551
  187. package/docs/rules/text-escaping.md +0 -177
  188. package/docs/rules/valid-types.md +0 -881
  189. package/docs/settings.md +0 -362
  190. package/tsconfig-prod.json +0 -20
  191. package/tsconfig.json +0 -21
@@ -1,297 +0,0 @@
1
- <a name="user-content-require-asterisk-prefix"></a>
2
- <a name="require-asterisk-prefix"></a>
3
- ### <code>require-asterisk-prefix</code>
4
-
5
-
6
-
7
- Requires that each JSDoc line starts with an `*`.
8
-
9
- <a name="user-content-fixer"></a>
10
- <a name="fixer"></a>
11
- ## Fixer
12
-
13
- (TODO)
14
-
15
- <a name="user-content-options"></a>
16
- <a name="options"></a>
17
- ## Options
18
-
19
- This rule allows an optional string argument. If it is `"always"` then a
20
- problem is raised when there is no asterisk prefix on a given jsdoc line. If
21
- it is `"never"` then a problem is raised when there is an asterisk present.
22
- The default value is `"always"`. You may also set the default to `"any"`
23
- and use the `tags` option to apply to specific tags only.
24
-
25
- After the string option, one may add an object with the following.
26
-
27
- <a name="user-content-options-tags"></a>
28
- <a name="options-tags"></a>
29
- ### <code>tags</code>
30
-
31
- If you want different values to apply to specific tags, you may use
32
- the `tags` option object. The keys are `always`, `never`, or `any` and
33
- the values are arrays of tag names or the special value `*description`
34
- which applies to the main jsdoc block description.
35
-
36
- ```js
37
- {
38
- 'jsdoc/require-asterisk-prefix': ['error', 'always', {
39
- tags: {
40
- always: ['*description'],
41
- any: ['example', 'license'],
42
- never: ['copyright']
43
- }
44
- }]
45
- }
46
- ```
47
-
48
- <a name="user-content-context-and-settings"></a>
49
- <a name="context-and-settings"></a>
50
- ## Context and settings
51
-
52
- |||
53
- |---|---|
54
- |Context|everywhere|
55
- |Tags|All or as limited by the `tags` option|
56
- |Options|string ("always", "never", "any") followed by object with `tags`|
57
-
58
- <a name="user-content-failing-examples"></a>
59
- <a name="failing-examples"></a>
60
- ## Failing examples
61
-
62
- The following patterns are considered problems:
63
-
64
- ````js
65
-
66
- /**
67
- @param {Number} foo
68
- */
69
- function quux (foo) {
70
- // with spaces
71
- }
72
- // Message: Expected JSDoc line to have the prefix.
73
-
74
-
75
- /**
76
- @param {Number} foo
77
- */
78
- function quux (foo) {
79
- // with spaces
80
- }
81
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "any",{"tags":{"always":["param"]}}]
82
- // Message: Expected JSDoc line to have the prefix.
83
-
84
-
85
- /**
86
- * Desc
87
-
88
- */
89
- function quux (foo) {
90
- // with spaces
91
- }
92
- // Message: Expected JSDoc line to have the prefix.
93
-
94
-
95
- /**
96
- *
97
- Desc
98
- */
99
- function quux (foo) {
100
- // with spaces
101
- }
102
- // Message: Expected JSDoc line to have the prefix.
103
-
104
-
105
- /**
106
- * Desc
107
- *
108
- */
109
- function quux (foo) {
110
- // with spaces
111
- }
112
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never"]
113
- // Message: Expected JSDoc line to have no prefix.
114
-
115
-
116
- /**
117
- @param {Number} foo
118
- */
119
- function quux (foo) {
120
- // with spaces
121
- }
122
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "always",{"tags":{"any":["someOtherTag"]}}]
123
- // Message: Expected JSDoc line to have the prefix.
124
-
125
-
126
- /**
127
- * @param {Number} foo
128
- */
129
- function quux (foo) {
130
- // with spaces
131
- }
132
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never",{"tags":{"always":["someOtherTag"]}}]
133
- // Message: Expected JSDoc line to have no prefix.
134
-
135
-
136
- /**
137
- * @param {Number} foo
138
- */
139
- function quux (foo) {
140
- // with spaces
141
- }
142
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "always",{"tags":{"never":["param"]}}]
143
- // Message: Expected JSDoc line to have no prefix.
144
-
145
-
146
- /**
147
- @param {Number} foo
148
- */
149
- function quux (foo) {
150
- // with spaces
151
- }
152
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never",{"tags":{"always":["param"]}}]
153
- // Message: Expected JSDoc line to have the prefix.
154
-
155
- /**
156
- @param {Number} foo
157
- */function quux (foo) {
158
- // with spaces
159
- }
160
- // Message: Expected JSDoc line to have the prefix.
161
-
162
-
163
- /**
164
- * @param {Number} foo
165
- */
166
- function quux (foo) {
167
- // with spaces
168
- }
169
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never"]
170
- // Message: Expected JSDoc line to have no prefix.
171
-
172
- /**
173
- *@param {Number} foo
174
- */function quux (foo) {
175
- // with spaces
176
- }
177
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never"]
178
- // Message: Expected JSDoc line to have no prefix.
179
- ````
180
-
181
-
182
-
183
- <a name="user-content-passing-examples"></a>
184
- <a name="passing-examples"></a>
185
- ## Passing examples
186
-
187
- The following patterns are not considered problems:
188
-
189
- ````js
190
- /**
191
- * Desc
192
- *
193
- * @param {Number} foo
194
- * This is more comment.
195
- */
196
- function quux (foo) {
197
-
198
- }
199
-
200
- /**
201
- * Desc
202
- *
203
- * @param {{
204
- * foo: Bar,
205
- * bar: Baz
206
- * }} foo
207
- *
208
- */
209
- function quux (foo) {
210
-
211
- }
212
-
213
- /* <- JSDoc must start with 2 stars.
214
- So this is unchecked.
215
- */
216
- function quux (foo) {}
217
-
218
- /** @param {Number} foo */
219
- function quux (foo) {
220
- // with spaces
221
- }
222
-
223
-
224
- /**
225
- @param {Number} foo
226
- */
227
- function quux (foo) {
228
- // with spaces
229
- }
230
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "always",{"tags":{"any":["param"]}}]
231
-
232
-
233
- /**
234
- * @param {Number} foo
235
- */
236
- function quux (foo) {
237
- // with spaces
238
- }
239
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never",{"tags":{"always":["param"]}}]
240
-
241
-
242
- /**
243
- * @param {Number} foo
244
- */
245
- function quux (foo) {
246
- // with spaces
247
- }
248
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "always",{"tags":{"never":["someOtherTag"]}}]
249
-
250
-
251
- /**
252
- @param {Number} foo
253
- */
254
- function quux (foo) {
255
- // with spaces
256
- }
257
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "always",{"tags":{"never":["param"]}}]
258
-
259
-
260
- /**
261
- @param {Number} foo
262
- */
263
- function quux (foo) {
264
- // with spaces
265
- }
266
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never",{"tags":{"always":["someOtherTag"]}}]
267
-
268
-
269
- /**
270
- * Desc
271
- *
272
- */
273
- function quux (foo) {
274
- // with spaces
275
- }
276
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "never",{"tags":{"any":["*description"]}}]
277
-
278
-
279
- /**
280
- * Desc
281
-
282
- */
283
- function quux (foo) {
284
- // with spaces
285
- }
286
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "always",{"tags":{"any":["*description"]}}]
287
-
288
-
289
- /**
290
- @param {Number} foo
291
- */
292
- function quux (foo) {
293
- // with spaces
294
- }
295
- // "jsdoc/require-asterisk-prefix": ["error"|"warn", "any",{"tags":{"always":["someOtherTag"]}}]
296
- ````
297
-