eslint-plugin-jsdoc 46.4.5 → 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 (66) hide show
  1. package/README.md +31 -0
  2. package/dist/alignTransform.js +5 -5
  3. package/dist/alignTransform.js.map +1 -1
  4. package/dist/index.js +21 -10
  5. package/dist/index.js.map +1 -1
  6. package/dist/iterateJsdoc.js +1 -1
  7. package/dist/iterateJsdoc.js.map +1 -1
  8. package/dist/rules/checkExamples.js +12 -6
  9. package/dist/rules/checkExamples.js.map +1 -1
  10. package/package.json +19 -15
  11. package/docs/advanced.md +0 -102
  12. package/docs/rules/check-access.md +0 -193
  13. package/docs/rules/check-alignment.md +0 -169
  14. package/docs/rules/check-examples.md +0 -784
  15. package/docs/rules/check-indentation.md +0 -296
  16. package/docs/rules/check-line-alignment.md +0 -1002
  17. package/docs/rules/check-param-names.md +0 -1035
  18. package/docs/rules/check-property-names.md +0 -244
  19. package/docs/rules/check-syntax.md +0 -80
  20. package/docs/rules/check-tag-names.md +0 -1132
  21. package/docs/rules/check-types.md +0 -1198
  22. package/docs/rules/check-values.md +0 -409
  23. package/docs/rules/empty-tags.md +0 -220
  24. package/docs/rules/implements-on-classes.md +0 -219
  25. package/docs/rules/imports-as-dependencies.md +0 -99
  26. package/docs/rules/informative-docs.md +0 -400
  27. package/docs/rules/match-description.md +0 -1008
  28. package/docs/rules/match-name.md +0 -249
  29. package/docs/rules/multiline-blocks.md +0 -398
  30. package/docs/rules/no-bad-blocks.md +0 -174
  31. package/docs/rules/no-blank-block-descriptions.md +0 -91
  32. package/docs/rules/no-blank-blocks.md +0 -98
  33. package/docs/rules/no-defaults.md +0 -207
  34. package/docs/rules/no-missing-syntax.md +0 -275
  35. package/docs/rules/no-multi-asterisks.md +0 -278
  36. package/docs/rules/no-restricted-syntax.md +0 -383
  37. package/docs/rules/no-types.md +0 -168
  38. package/docs/rules/no-undefined-types.md +0 -789
  39. package/docs/rules/require-asterisk-prefix.md +0 -297
  40. package/docs/rules/require-description-complete-sentence.md +0 -820
  41. package/docs/rules/require-description.md +0 -585
  42. package/docs/rules/require-example.md +0 -390
  43. package/docs/rules/require-file-overview.md +0 -324
  44. package/docs/rules/require-hyphen-before-param-description.md +0 -281
  45. package/docs/rules/require-jsdoc.md +0 -1857
  46. package/docs/rules/require-param-description.md +0 -238
  47. package/docs/rules/require-param-name.md +0 -163
  48. package/docs/rules/require-param-type.md +0 -227
  49. package/docs/rules/require-param.md +0 -1820
  50. package/docs/rules/require-property-description.md +0 -88
  51. package/docs/rules/require-property-name.md +0 -79
  52. package/docs/rules/require-property-type.md +0 -79
  53. package/docs/rules/require-property.md +0 -128
  54. package/docs/rules/require-returns-check.md +0 -1053
  55. package/docs/rules/require-returns-description.md +0 -181
  56. package/docs/rules/require-returns-type.md +0 -144
  57. package/docs/rules/require-returns.md +0 -1191
  58. package/docs/rules/require-throws.md +0 -326
  59. package/docs/rules/require-yields-check.md +0 -544
  60. package/docs/rules/require-yields.md +0 -823
  61. package/docs/rules/sort-tags.md +0 -635
  62. package/docs/rules/tag-lines.md +0 -551
  63. package/docs/rules/text-escaping.md +0 -177
  64. package/docs/rules/valid-types.md +0 -881
  65. package/docs/settings.md +0 -362
  66. package/tsconfig.json +0 -22
@@ -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
-