eslint-plugin-jsdoc 43.0.9 → 43.1.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.
- package/README.md +288 -188
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/iterateJsdoc.js +4 -4
- package/dist/iterateJsdoc.js.map +1 -1
- package/dist/rules/noBlankBlocks.js +53 -0
- package/dist/rules/noBlankBlocks.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@ JSDoc linting rules for ESLint.
|
|
|
44
44
|
* [`multiline-blocks`](#user-content-eslint-plugin-jsdoc-rules-multiline-blocks)
|
|
45
45
|
* [`no-bad-blocks`](#user-content-eslint-plugin-jsdoc-rules-no-bad-blocks)
|
|
46
46
|
* [`no-blank-block-descriptions`](#user-content-eslint-plugin-jsdoc-rules-no-blank-block-descriptions)
|
|
47
|
+
* [`no-blank-blocks`](#user-content-eslint-plugin-jsdoc-rules-no-blank-blocks)
|
|
47
48
|
* [`no-defaults`](#user-content-eslint-plugin-jsdoc-rules-no-defaults)
|
|
48
49
|
* [`no-missing-syntax`](#user-content-eslint-plugin-jsdoc-rules-no-missing-syntax)
|
|
49
50
|
* [`no-multi-asterisks`](#user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks)
|
|
@@ -5012,6 +5013,27 @@ function Test() {
|
|
|
5012
5013
|
}
|
|
5013
5014
|
// Settings: {"jsdoc":{"tagNamePreference":{"returns":"return"}}}
|
|
5014
5015
|
// Message: Invalid JSDoc tag (preference). Replace "constructor" JSDoc tag with "class".
|
|
5016
|
+
|
|
5017
|
+
/** @typedef {Object} MyObject
|
|
5018
|
+
* @property {string} id - my id
|
|
5019
|
+
*/
|
|
5020
|
+
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
|
|
5021
|
+
// Message: '@typedef' is redundant when using a type system.
|
|
5022
|
+
|
|
5023
|
+
/**
|
|
5024
|
+
* @property {string} id - my id
|
|
5025
|
+
*/
|
|
5026
|
+
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
|
|
5027
|
+
// Message: '@property' is redundant when using a type system.
|
|
5028
|
+
|
|
5029
|
+
/** @typedef {Object} MyObject */
|
|
5030
|
+
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
|
|
5031
|
+
// Message: '@typedef' is redundant when using a type system.
|
|
5032
|
+
|
|
5033
|
+
/** @typedef {Object} MyObject
|
|
5034
|
+
*/
|
|
5035
|
+
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
|
|
5036
|
+
// Message: '@typedef' is redundant when using a type system.
|
|
5015
5037
|
````
|
|
5016
5038
|
|
|
5017
5039
|
The following patterns are not considered problems:
|
|
@@ -9468,6 +9490,84 @@ function functionWithClearName() {}
|
|
|
9468
9490
|
````
|
|
9469
9491
|
|
|
9470
9492
|
|
|
9493
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-blank-blocks"></a>
|
|
9494
|
+
<a name="eslint-plugin-jsdoc-rules-no-blank-blocks"></a>
|
|
9495
|
+
### <code>no-blank-blocks</code>
|
|
9496
|
+
|
|
9497
|
+
Reports and optionally removes blocks with whitespace only.
|
|
9498
|
+
|
|
9499
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-blank-blocks-options-16"></a>
|
|
9500
|
+
<a name="eslint-plugin-jsdoc-rules-no-blank-blocks-options-16"></a>
|
|
9501
|
+
#### Options
|
|
9502
|
+
|
|
9503
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-blank-blocks-options-16-enablefixer-3"></a>
|
|
9504
|
+
<a name="eslint-plugin-jsdoc-rules-no-blank-blocks-options-16-enablefixer-3"></a>
|
|
9505
|
+
##### <code>enableFixer</code>
|
|
9506
|
+
|
|
9507
|
+
Whether or not to auto-remove the blank block. Defaults to `false`.
|
|
9508
|
+
|
|
9509
|
+
|||
|
|
9510
|
+
|---|---|
|
|
9511
|
+
|Context|everywhere|
|
|
9512
|
+
|Tags|N/A|
|
|
9513
|
+
|Recommended|false|
|
|
9514
|
+
|Settings||
|
|
9515
|
+
|Options|`enableFixer`|
|
|
9516
|
+
|
|
9517
|
+
The following patterns are considered problems:
|
|
9518
|
+
|
|
9519
|
+
````js
|
|
9520
|
+
/** */
|
|
9521
|
+
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
|
|
9522
|
+
// Message: No empty blocks
|
|
9523
|
+
|
|
9524
|
+
/**
|
|
9525
|
+
*/
|
|
9526
|
+
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
|
|
9527
|
+
// Message: No empty blocks
|
|
9528
|
+
|
|
9529
|
+
/**
|
|
9530
|
+
*
|
|
9531
|
+
*/
|
|
9532
|
+
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
|
|
9533
|
+
// Message: No empty blocks
|
|
9534
|
+
|
|
9535
|
+
/**
|
|
9536
|
+
*
|
|
9537
|
+
*
|
|
9538
|
+
*/
|
|
9539
|
+
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":true}]
|
|
9540
|
+
// Message: No empty blocks
|
|
9541
|
+
|
|
9542
|
+
/**
|
|
9543
|
+
*
|
|
9544
|
+
*
|
|
9545
|
+
*/
|
|
9546
|
+
// "jsdoc/no-blank-blocks": ["error"|"warn", {"enableFixer":false}]
|
|
9547
|
+
// Message: No empty blocks
|
|
9548
|
+
|
|
9549
|
+
/**
|
|
9550
|
+
*
|
|
9551
|
+
*
|
|
9552
|
+
*/
|
|
9553
|
+
// Message: No empty blocks
|
|
9554
|
+
````
|
|
9555
|
+
|
|
9556
|
+
The following patterns are not considered problems:
|
|
9557
|
+
|
|
9558
|
+
````js
|
|
9559
|
+
/** @tag */
|
|
9560
|
+
|
|
9561
|
+
/**
|
|
9562
|
+
* Text
|
|
9563
|
+
*/
|
|
9564
|
+
|
|
9565
|
+
/**
|
|
9566
|
+
* @tag
|
|
9567
|
+
*/
|
|
9568
|
+
````
|
|
9569
|
+
|
|
9570
|
+
|
|
9471
9571
|
<a name="user-content-eslint-plugin-jsdoc-rules-no-defaults"></a>
|
|
9472
9572
|
<a name="eslint-plugin-jsdoc-rules-no-defaults"></a>
|
|
9473
9573
|
### <code>no-defaults</code>
|
|
@@ -9484,12 +9584,12 @@ tag is attached).
|
|
|
9484
9584
|
Unless your `@default` is on a function, you will need to set `contexts`
|
|
9485
9585
|
to an appropriate context, including, if you wish, "any".
|
|
9486
9586
|
|
|
9487
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-defaults-options-
|
|
9488
|
-
<a name="eslint-plugin-jsdoc-rules-no-defaults-options-
|
|
9587
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-defaults-options-17"></a>
|
|
9588
|
+
<a name="eslint-plugin-jsdoc-rules-no-defaults-options-17"></a>
|
|
9489
9589
|
#### Options
|
|
9490
9590
|
|
|
9491
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-defaults-options-
|
|
9492
|
-
<a name="eslint-plugin-jsdoc-rules-no-defaults-options-
|
|
9591
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-defaults-options-17-nooptionalparamnames"></a>
|
|
9592
|
+
<a name="eslint-plugin-jsdoc-rules-no-defaults-options-17-nooptionalparamnames"></a>
|
|
9493
9593
|
##### <code>noOptionalParamNames</code>
|
|
9494
9594
|
|
|
9495
9595
|
Set this to `true` to report the presence of optional parameters. May be
|
|
@@ -9498,8 +9598,8 @@ the presence of ES6 default parameters (bearing in mind that such
|
|
|
9498
9598
|
"defaults" are only applied when the supplied value is missing or
|
|
9499
9599
|
`undefined` but not for `null` or other "falsey" values).
|
|
9500
9600
|
|
|
9501
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-defaults-options-
|
|
9502
|
-
<a name="eslint-plugin-jsdoc-rules-no-defaults-options-
|
|
9601
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-defaults-options-17-contexts-3"></a>
|
|
9602
|
+
<a name="eslint-plugin-jsdoc-rules-no-defaults-options-17-contexts-3"></a>
|
|
9503
9603
|
##### <code>contexts</code>
|
|
9504
9604
|
|
|
9505
9605
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -9685,12 +9785,12 @@ which are not adequate to satisfy a condition, e.g.,
|
|
|
9685
9785
|
not report if there were only a function declaration of the name "ignoreMe"
|
|
9686
9786
|
(though it would report by function declarations of other names).
|
|
9687
9787
|
|
|
9688
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-missing-syntax-options-
|
|
9689
|
-
<a name="eslint-plugin-jsdoc-rules-no-missing-syntax-options-
|
|
9788
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-missing-syntax-options-18"></a>
|
|
9789
|
+
<a name="eslint-plugin-jsdoc-rules-no-missing-syntax-options-18"></a>
|
|
9690
9790
|
#### Options
|
|
9691
9791
|
|
|
9692
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-missing-syntax-options-
|
|
9693
|
-
<a name="eslint-plugin-jsdoc-rules-no-missing-syntax-options-
|
|
9792
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-missing-syntax-options-18-contexts-4"></a>
|
|
9793
|
+
<a name="eslint-plugin-jsdoc-rules-no-missing-syntax-options-18-contexts-4"></a>
|
|
9694
9794
|
##### <code>contexts</code>
|
|
9695
9795
|
|
|
9696
9796
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -9906,12 +10006,12 @@ Note that if you wish to prevent multiple asterisks at the very beginning of
|
|
|
9906
10006
|
the jsdoc block, you should use `no-bad-blocks` (as that is not proper jsdoc
|
|
9907
10007
|
and that rule is for catching blocks which only seem like jsdoc).
|
|
9908
10008
|
|
|
9909
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
9910
|
-
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
10009
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19"></a>
|
|
10010
|
+
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19"></a>
|
|
9911
10011
|
#### Options
|
|
9912
10012
|
|
|
9913
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
9914
|
-
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
10013
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19-allowwhitespace-defaults-to-false"></a>
|
|
10014
|
+
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19-allowwhitespace-defaults-to-false"></a>
|
|
9915
10015
|
##### <code>allowWhitespace</code> (defaults to <code>false</code>)
|
|
9916
10016
|
|
|
9917
10017
|
Set to `true` if you wish to allow asterisks after a space (as with Markdown):
|
|
@@ -9922,8 +10022,8 @@ Set to `true` if you wish to allow asterisks after a space (as with Markdown):
|
|
|
9922
10022
|
*/
|
|
9923
10023
|
```
|
|
9924
10024
|
|
|
9925
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
9926
|
-
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
10025
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19-preventatmiddlelines-defaults-to-true"></a>
|
|
10026
|
+
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19-preventatmiddlelines-defaults-to-true"></a>
|
|
9927
10027
|
##### <code>preventAtMiddleLines</code> (defaults to <code>true</code>)
|
|
9928
10028
|
|
|
9929
10029
|
Prevent the likes of this:
|
|
@@ -9935,8 +10035,8 @@ Prevent the likes of this:
|
|
|
9935
10035
|
*/
|
|
9936
10036
|
```
|
|
9937
10037
|
|
|
9938
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
9939
|
-
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-
|
|
10038
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19-preventatend-defaults-to-true"></a>
|
|
10039
|
+
<a name="eslint-plugin-jsdoc-rules-no-multi-asterisks-options-19-preventatend-defaults-to-true"></a>
|
|
9940
10040
|
##### <code>preventAtEnd</code> (defaults to <code>true</code>)
|
|
9941
10041
|
|
|
9942
10042
|
Prevent the likes of this:
|
|
@@ -10171,12 +10271,12 @@ structures, (whether or not you add a specific `comment` condition).
|
|
|
10171
10271
|
Note that if your parser supports comment AST (as [jsdoc-eslint-parser](https://github.com/brettz9/jsdoc-eslint-parser)
|
|
10172
10272
|
is designed to do), you can just use ESLint's rule.
|
|
10173
10273
|
|
|
10174
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-restricted-syntax-options-
|
|
10175
|
-
<a name="eslint-plugin-jsdoc-rules-no-restricted-syntax-options-
|
|
10274
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-restricted-syntax-options-20"></a>
|
|
10275
|
+
<a name="eslint-plugin-jsdoc-rules-no-restricted-syntax-options-20"></a>
|
|
10176
10276
|
#### Options
|
|
10177
10277
|
|
|
10178
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-restricted-syntax-options-
|
|
10179
|
-
<a name="eslint-plugin-jsdoc-rules-no-restricted-syntax-options-
|
|
10278
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-restricted-syntax-options-20-contexts-5"></a>
|
|
10279
|
+
<a name="eslint-plugin-jsdoc-rules-no-restricted-syntax-options-20-contexts-5"></a>
|
|
10180
10280
|
##### <code>contexts</code>
|
|
10181
10281
|
|
|
10182
10282
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -10501,12 +10601,12 @@ This rule reports types being used on `@param` or `@returns`.
|
|
|
10501
10601
|
The rule is intended to prevent the indication of types on tags where
|
|
10502
10602
|
the type information would be redundant with TypeScript.
|
|
10503
10603
|
|
|
10504
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-types-options-
|
|
10505
|
-
<a name="eslint-plugin-jsdoc-rules-no-types-options-
|
|
10604
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-types-options-21"></a>
|
|
10605
|
+
<a name="eslint-plugin-jsdoc-rules-no-types-options-21"></a>
|
|
10506
10606
|
#### Options
|
|
10507
10607
|
|
|
10508
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-types-options-
|
|
10509
|
-
<a name="eslint-plugin-jsdoc-rules-no-types-options-
|
|
10608
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-types-options-21-contexts-6"></a>
|
|
10609
|
+
<a name="eslint-plugin-jsdoc-rules-no-types-options-21-contexts-6"></a>
|
|
10510
10610
|
##### <code>contexts</code>
|
|
10511
10611
|
|
|
10512
10612
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -10680,8 +10780,8 @@ reporting on use of that namepath elsewhere) and/or that a tag's `type` is
|
|
|
10680
10780
|
`false` (and should not be checked for types). If the `type` is an array, that
|
|
10681
10781
|
array's items will be considered as defined for the purposes of that tag.
|
|
10682
10782
|
|
|
10683
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-no-undefined-types-options-
|
|
10684
|
-
<a name="eslint-plugin-jsdoc-rules-no-undefined-types-options-
|
|
10783
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-no-undefined-types-options-22"></a>
|
|
10784
|
+
<a name="eslint-plugin-jsdoc-rules-no-undefined-types-options-22"></a>
|
|
10685
10785
|
#### Options
|
|
10686
10786
|
|
|
10687
10787
|
An option object may have the following key:
|
|
@@ -11349,8 +11449,8 @@ class Foo {
|
|
|
11349
11449
|
|
|
11350
11450
|
Requires that each JSDoc line starts with an `*`.
|
|
11351
11451
|
|
|
11352
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-
|
|
11353
|
-
<a name="eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-
|
|
11452
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-23"></a>
|
|
11453
|
+
<a name="eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-23"></a>
|
|
11354
11454
|
#### Options
|
|
11355
11455
|
|
|
11356
11456
|
This rule allows an optional string argument. If it is `"always"` then a
|
|
@@ -11361,8 +11461,8 @@ and use the `tags` option to apply to specific tags only.
|
|
|
11361
11461
|
|
|
11362
11462
|
After the string option, one may add an object with the following.
|
|
11363
11463
|
|
|
11364
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-
|
|
11365
|
-
<a name="eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-
|
|
11464
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-23-tags-3"></a>
|
|
11465
|
+
<a name="eslint-plugin-jsdoc-rules-require-asterisk-prefix-options-23-tags-3"></a>
|
|
11366
11466
|
##### <code>tags</code>
|
|
11367
11467
|
|
|
11368
11468
|
If you want different values to apply to specific tags, you may use
|
|
@@ -11646,12 +11746,12 @@ If sentences do not end with terminal punctuation, a period will be added.
|
|
|
11646
11746
|
If sentences do not start with an uppercase character, the initial
|
|
11647
11747
|
letter will be capitalized.
|
|
11648
11748
|
|
|
11649
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11650
|
-
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11749
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24"></a>
|
|
11750
|
+
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24"></a>
|
|
11651
11751
|
#### Options
|
|
11652
11752
|
|
|
11653
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11654
|
-
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11753
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24-tags-4"></a>
|
|
11754
|
+
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24-tags-4"></a>
|
|
11655
11755
|
##### <code>tags</code>
|
|
11656
11756
|
|
|
11657
11757
|
If you want additional tags to be checked for their descriptions, you may
|
|
@@ -11675,16 +11775,16 @@ its "description" (e.g., for `@returns {someType} some description`, the
|
|
|
11675
11775
|
description is `some description` while for `@some-tag xyz`, the description
|
|
11676
11776
|
is `xyz`).
|
|
11677
11777
|
|
|
11678
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11679
|
-
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11778
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24-abbreviations"></a>
|
|
11779
|
+
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24-abbreviations"></a>
|
|
11680
11780
|
##### <code>abbreviations</code>
|
|
11681
11781
|
|
|
11682
11782
|
You can provide an `abbreviations` options array to avoid such strings of text
|
|
11683
11783
|
being treated as sentence endings when followed by dots. The `.` is not
|
|
11684
11784
|
necessary at the end of the array items.
|
|
11685
11785
|
|
|
11686
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11687
|
-
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-
|
|
11786
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24-newlinebeforecapsassumesbadsentenceend"></a>
|
|
11787
|
+
<a name="eslint-plugin-jsdoc-rules-require-description-complete-sentence-options-24-newlinebeforecapsassumesbadsentenceend"></a>
|
|
11688
11788
|
##### <code>newlineBeforeCapsAssumesBadSentenceEnd</code>
|
|
11689
11789
|
|
|
11690
11790
|
When `false` (the new default), we will not assume capital letters after
|
|
@@ -12428,8 +12528,8 @@ Requires that all functions have a description.
|
|
|
12428
12528
|
is `"tag"`) must have a non-empty description that explains the purpose of
|
|
12429
12529
|
the method.
|
|
12430
12530
|
|
|
12431
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-options-
|
|
12432
|
-
<a name="eslint-plugin-jsdoc-rules-require-description-options-
|
|
12531
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-description-options-25"></a>
|
|
12532
|
+
<a name="eslint-plugin-jsdoc-rules-require-description-options-25"></a>
|
|
12433
12533
|
#### Options
|
|
12434
12534
|
|
|
12435
12535
|
An options object may have any of the following properties:
|
|
@@ -12990,14 +13090,14 @@ Requires that all functions have examples.
|
|
|
12990
13090
|
* Every example tag must have a non-empty description that explains the
|
|
12991
13091
|
method's usage.
|
|
12992
13092
|
|
|
12993
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
12994
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13093
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26"></a>
|
|
13094
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26"></a>
|
|
12995
13095
|
#### Options
|
|
12996
13096
|
|
|
12997
13097
|
This rule has an object option.
|
|
12998
13098
|
|
|
12999
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
13000
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13099
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26-exemptedby"></a>
|
|
13100
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26-exemptedby"></a>
|
|
13001
13101
|
##### <code>exemptedBy</code>
|
|
13002
13102
|
|
|
13003
13103
|
Array of tags (e.g., `['type']`) whose presence on the document
|
|
@@ -13006,15 +13106,15 @@ block avoids the need for an `@example`. Defaults to an array with
|
|
|
13006
13106
|
so be sure to add back `inheritdoc` if you wish its presence to cause
|
|
13007
13107
|
exemption of the rule.
|
|
13008
13108
|
|
|
13009
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
13010
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13109
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26-exemptnoarguments"></a>
|
|
13110
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26-exemptnoarguments"></a>
|
|
13011
13111
|
##### <code>exemptNoArguments</code>
|
|
13012
13112
|
|
|
13013
13113
|
Boolean to indicate that no-argument functions should not be reported for
|
|
13014
13114
|
missing `@example` declarations.
|
|
13015
13115
|
|
|
13016
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
13017
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13116
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26-contexts-7"></a>
|
|
13117
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26-contexts-7"></a>
|
|
13018
13118
|
##### <code>contexts</code>
|
|
13019
13119
|
|
|
13020
13120
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -13026,27 +13126,27 @@ want the rule to apply to any jsdoc block throughout your files.
|
|
|
13026
13126
|
See the ["AST and Selectors"](#user-content-eslint-plugin-jsdoc-advanced-ast-and-selectors)
|
|
13027
13127
|
section of our README for more on the expected format.
|
|
13028
13128
|
|
|
13029
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
13030
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13129
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26-checkconstructors"></a>
|
|
13130
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26-checkconstructors"></a>
|
|
13031
13131
|
##### <code>checkConstructors</code>
|
|
13032
13132
|
|
|
13033
13133
|
A value indicating whether `constructor`s should be checked.
|
|
13034
13134
|
Defaults to `true`.
|
|
13035
13135
|
|
|
13036
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
13037
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13136
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26-checkgetters"></a>
|
|
13137
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26-checkgetters"></a>
|
|
13038
13138
|
##### <code>checkGetters</code>
|
|
13039
13139
|
|
|
13040
13140
|
A value indicating whether getters should be checked. Defaults to `false`.
|
|
13041
13141
|
|
|
13042
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
13043
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13142
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26-checksetters"></a>
|
|
13143
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26-checksetters"></a>
|
|
13044
13144
|
##### <code>checkSetters</code>
|
|
13045
13145
|
|
|
13046
13146
|
A value indicating whether setters should be checked. Defaults to `false`.
|
|
13047
13147
|
|
|
13048
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-
|
|
13049
|
-
<a name="eslint-plugin-jsdoc-rules-require-example-options-
|
|
13148
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-example-options-26-enablefixer-4"></a>
|
|
13149
|
+
<a name="eslint-plugin-jsdoc-rules-require-example-options-26-enablefixer-4"></a>
|
|
13050
13150
|
##### <code>enableFixer</code>
|
|
13051
13151
|
|
|
13052
13152
|
A boolean on whether to enable the fixer (which adds an empty `@example` block).
|
|
@@ -13359,12 +13459,12 @@ Checks that:
|
|
|
13359
13459
|
as being when the overview tag is not preceded by anything other than
|
|
13360
13460
|
a comment.
|
|
13361
13461
|
|
|
13362
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-file-overview-options-
|
|
13363
|
-
<a name="eslint-plugin-jsdoc-rules-require-file-overview-options-
|
|
13462
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-file-overview-options-27"></a>
|
|
13463
|
+
<a name="eslint-plugin-jsdoc-rules-require-file-overview-options-27"></a>
|
|
13364
13464
|
#### Options
|
|
13365
13465
|
|
|
13366
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-file-overview-options-
|
|
13367
|
-
<a name="eslint-plugin-jsdoc-rules-require-file-overview-options-
|
|
13466
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-file-overview-options-27-tags-5"></a>
|
|
13467
|
+
<a name="eslint-plugin-jsdoc-rules-require-file-overview-options-27-tags-5"></a>
|
|
13368
13468
|
##### <code>tags</code>
|
|
13369
13469
|
|
|
13370
13470
|
The keys of this object are tag names, and the values are configuration
|
|
@@ -13648,8 +13748,8 @@ function quux () {
|
|
|
13648
13748
|
|
|
13649
13749
|
Requires (or disallows) a hyphen before the `@param` description.
|
|
13650
13750
|
|
|
13651
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-hyphen-before-param-description-options-
|
|
13652
|
-
<a name="eslint-plugin-jsdoc-rules-require-hyphen-before-param-description-options-
|
|
13751
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-hyphen-before-param-description-options-28"></a>
|
|
13752
|
+
<a name="eslint-plugin-jsdoc-rules-require-hyphen-before-param-description-options-28"></a>
|
|
13653
13753
|
#### Options
|
|
13654
13754
|
|
|
13655
13755
|
This rule takes one optional string argument and an optional options object.
|
|
@@ -13881,14 +13981,14 @@ function main(argv) {
|
|
|
13881
13981
|
Checks for presence of jsdoc comments, on class declarations as well as
|
|
13882
13982
|
functions.
|
|
13883
13983
|
|
|
13884
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13885
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13984
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29"></a>
|
|
13985
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29"></a>
|
|
13886
13986
|
#### Options
|
|
13887
13987
|
|
|
13888
13988
|
Accepts one optional options object with the following optional keys.
|
|
13889
13989
|
|
|
13890
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13891
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13990
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-publiconly"></a>
|
|
13991
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-publiconly"></a>
|
|
13892
13992
|
##### <code>publicOnly</code>
|
|
13893
13993
|
|
|
13894
13994
|
This option will insist that missing jsdoc blocks are only reported for
|
|
@@ -13904,8 +14004,8 @@ otherwise noted):
|
|
|
13904
14004
|
- `cjs` - CommonJS exports are checked for JSDoc comments (Defaults to `true`)
|
|
13905
14005
|
- `window` - Window global exports are checked for JSDoc comments
|
|
13906
14006
|
|
|
13907
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13908
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14007
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-require"></a>
|
|
14008
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-require"></a>
|
|
13909
14009
|
##### <code>require</code>
|
|
13910
14010
|
|
|
13911
14011
|
An object with the following optional boolean keys which all default to
|
|
@@ -13918,8 +14018,8 @@ An object with the following optional boolean keys which all default to
|
|
|
13918
14018
|
- `FunctionExpression`
|
|
13919
14019
|
- `MethodDefinition`
|
|
13920
14020
|
|
|
13921
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13922
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14021
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-contexts-8"></a>
|
|
14022
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-contexts-8"></a>
|
|
13923
14023
|
##### <code>contexts</code>
|
|
13924
14024
|
|
|
13925
14025
|
Set this to an array of strings or objects representing the additional AST
|
|
@@ -13936,8 +14036,8 @@ if you are specifying a more precise form in `contexts` (e.g., `MethodDefinition
|
|
|
13936
14036
|
See the ["AST and Selectors"](#user-content-eslint-plugin-jsdoc-advanced-ast-and-selectors)
|
|
13937
14037
|
section of our README for more on the expected format.
|
|
13938
14038
|
|
|
13939
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13940
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14039
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-exemptemptyconstructors"></a>
|
|
14040
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-exemptemptyconstructors"></a>
|
|
13941
14041
|
##### <code>exemptEmptyConstructors</code>
|
|
13942
14042
|
|
|
13943
14043
|
Default: true
|
|
@@ -13946,8 +14046,8 @@ When `true`, the rule will not report missing jsdoc blocks above constructors
|
|
|
13946
14046
|
with no parameters or return values (this is enabled by default as the class
|
|
13947
14047
|
name or description should be seen as sufficient to convey intent).
|
|
13948
14048
|
|
|
13949
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13950
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14049
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-exemptemptyfunctions"></a>
|
|
14050
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-exemptemptyfunctions"></a>
|
|
13951
14051
|
##### <code>exemptEmptyFunctions</code>
|
|
13952
14052
|
|
|
13953
14053
|
Default: false.
|
|
@@ -13956,16 +14056,16 @@ When `true`, the rule will not report missing jsdoc blocks above
|
|
|
13956
14056
|
functions/methods with no parameters or return values (intended where
|
|
13957
14057
|
function/method names are sufficient for themselves as documentation).
|
|
13958
14058
|
|
|
13959
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13960
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14059
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-checkconstructors-1"></a>
|
|
14060
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-checkconstructors-1"></a>
|
|
13961
14061
|
##### <code>checkConstructors</code>
|
|
13962
14062
|
|
|
13963
14063
|
A value indicating whether `constructor`s should be checked. Defaults to
|
|
13964
14064
|
`true`. When `true`, `exemptEmptyConstructors` may still avoid reporting when
|
|
13965
14065
|
no parameters or return values are found.
|
|
13966
14066
|
|
|
13967
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13968
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14067
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-checkgetters-1"></a>
|
|
14068
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-checkgetters-1"></a>
|
|
13969
14069
|
##### <code>checkGetters</code>
|
|
13970
14070
|
|
|
13971
14071
|
A value indicating whether getters should be checked. Besides setting as a
|
|
@@ -13974,8 +14074,8 @@ getters should be checked but only when there is no setter. This may be useful
|
|
|
13974
14074
|
if one only wishes documentation on one of the two accessors. Defaults to
|
|
13975
14075
|
`false`.
|
|
13976
14076
|
|
|
13977
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13978
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14077
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-checksetters-1"></a>
|
|
14078
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-checksetters-1"></a>
|
|
13979
14079
|
##### <code>checkSetters</code>
|
|
13980
14080
|
|
|
13981
14081
|
A value indicating whether setters should be checked. Besides setting as a
|
|
@@ -13984,15 +14084,15 @@ setters should be checked but only when there is no getter. This may be useful
|
|
|
13984
14084
|
if one only wishes documentation on one of the two accessors. Defaults to
|
|
13985
14085
|
`false`.
|
|
13986
14086
|
|
|
13987
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13988
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14087
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-enablefixer-5"></a>
|
|
14088
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-enablefixer-5"></a>
|
|
13989
14089
|
##### <code>enableFixer</code>
|
|
13990
14090
|
|
|
13991
14091
|
A boolean on whether to enable the fixer (which adds an empty jsdoc block).
|
|
13992
14092
|
Defaults to `true`.
|
|
13993
14093
|
|
|
13994
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
13995
|
-
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-
|
|
14094
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-jsdoc-options-29-minlinecount"></a>
|
|
14095
|
+
<a name="eslint-plugin-jsdoc-rules-require-jsdoc-options-29-minlinecount"></a>
|
|
13996
14096
|
##### <code>minLineCount</code>
|
|
13997
14097
|
|
|
13998
14098
|
An integer to indicate a minimum number of lines expected for a node in order
|
|
@@ -15684,12 +15784,12 @@ Will exempt destructured roots and their children if
|
|
|
15684
15784
|
`@param {object} props` will be exempted from requiring a description given
|
|
15685
15785
|
`function someFunc ({child1, child2})`).
|
|
15686
15786
|
|
|
15687
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15688
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15787
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-30"></a>
|
|
15788
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-30"></a>
|
|
15689
15789
|
#### Options
|
|
15690
15790
|
|
|
15691
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15692
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15791
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-30-setdefaultdestructuredrootdescription"></a>
|
|
15792
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-30-setdefaultdestructuredrootdescription"></a>
|
|
15693
15793
|
##### <code>setDefaultDestructuredRootDescription</code>
|
|
15694
15794
|
|
|
15695
15795
|
Whether to set a default destructured root description. For example, you may
|
|
@@ -15698,15 +15798,15 @@ corresponding to a destructured root object as it should always be the same
|
|
|
15698
15798
|
type of object. Uses `defaultDestructuredRootDescription` for the description
|
|
15699
15799
|
string. Defaults to `false`.
|
|
15700
15800
|
|
|
15701
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15702
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15801
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-30-defaultdestructuredrootdescription"></a>
|
|
15802
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-30-defaultdestructuredrootdescription"></a>
|
|
15703
15803
|
##### <code>defaultDestructuredRootDescription</code>
|
|
15704
15804
|
|
|
15705
15805
|
The description string to set by default for destructured roots. Defaults to
|
|
15706
15806
|
"The root object".
|
|
15707
15807
|
|
|
15708
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15709
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-
|
|
15808
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-description-options-30-contexts-9"></a>
|
|
15809
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-description-options-30-contexts-9"></a>
|
|
15710
15810
|
##### <code>contexts</code>
|
|
15711
15811
|
|
|
15712
15812
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -15899,12 +15999,12 @@ Requires that all function parameters have names.
|
|
|
15899
15999
|
>
|
|
15900
16000
|
> [JSDoc](https://jsdoc.app/tags-param.html#overview)
|
|
15901
16001
|
|
|
15902
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-name-options-
|
|
15903
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-name-options-
|
|
16002
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-name-options-31"></a>
|
|
16003
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-name-options-31"></a>
|
|
15904
16004
|
#### Options
|
|
15905
16005
|
|
|
15906
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-name-options-
|
|
15907
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-name-options-
|
|
16006
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-name-options-31-contexts-10"></a>
|
|
16007
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-name-options-31-contexts-10"></a>
|
|
15908
16008
|
##### <code>contexts</code>
|
|
15909
16009
|
|
|
15910
16010
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -16043,12 +16143,12 @@ Will exempt destructured roots and their children if
|
|
|
16043
16143
|
`@param props` will be exempted from requiring a type given
|
|
16044
16144
|
`function someFunc ({child1, child2})`).
|
|
16045
16145
|
|
|
16046
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16047
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16146
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-32"></a>
|
|
16147
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-32"></a>
|
|
16048
16148
|
#### Options
|
|
16049
16149
|
|
|
16050
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16051
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16150
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-32-setdefaultdestructuredroottype"></a>
|
|
16151
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-32-setdefaultdestructuredroottype"></a>
|
|
16052
16152
|
##### <code>setDefaultDestructuredRootType</code>
|
|
16053
16153
|
|
|
16054
16154
|
Whether to set a default destructured root type. For example, you may wish
|
|
@@ -16057,14 +16157,14 @@ corresponding to a destructured root object as it is always going to be an
|
|
|
16057
16157
|
object. Uses `defaultDestructuredRootType` for the type string. Defaults to
|
|
16058
16158
|
`false`.
|
|
16059
16159
|
|
|
16060
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16061
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16160
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-32-defaultdestructuredroottype"></a>
|
|
16161
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-32-defaultdestructuredroottype"></a>
|
|
16062
16162
|
##### <code>defaultDestructuredRootType</code>
|
|
16063
16163
|
|
|
16064
16164
|
The type string to set by default for destructured roots. Defaults to "object".
|
|
16065
16165
|
|
|
16066
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16067
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-
|
|
16166
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-type-options-32-contexts-11"></a>
|
|
16167
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-type-options-32-contexts-11"></a>
|
|
16068
16168
|
##### <code>contexts</code>
|
|
16069
16169
|
|
|
16070
16170
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -16429,35 +16529,35 @@ other properties, so in looking at the docs alone without looking at the
|
|
|
16429
16529
|
function signature, it may appear that there is an actual property named
|
|
16430
16530
|
`extra`.
|
|
16431
16531
|
|
|
16432
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16433
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16532
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33"></a>
|
|
16533
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33"></a>
|
|
16434
16534
|
#### Options
|
|
16435
16535
|
|
|
16436
16536
|
An options object accepts the following optional properties:
|
|
16437
16537
|
|
|
16438
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16439
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16538
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-enablefixer-6"></a>
|
|
16539
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-enablefixer-6"></a>
|
|
16440
16540
|
##### <code>enableFixer</code>
|
|
16441
16541
|
|
|
16442
16542
|
Whether to enable the fixer. Defaults to `true`.
|
|
16443
16543
|
|
|
16444
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16445
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16544
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-enablerootfixer"></a>
|
|
16545
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-enablerootfixer"></a>
|
|
16446
16546
|
##### <code>enableRootFixer</code>
|
|
16447
16547
|
|
|
16448
16548
|
Whether to enable the auto-adding of incrementing roots (see the "Fixer"
|
|
16449
16549
|
section). Defaults to `true`. Has no effect if `enableFixer` is set to
|
|
16450
16550
|
`false`.
|
|
16451
16551
|
|
|
16452
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16453
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16552
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-enablerestelementfixer"></a>
|
|
16553
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-enablerestelementfixer"></a>
|
|
16454
16554
|
##### <code>enableRestElementFixer</code>
|
|
16455
16555
|
|
|
16456
16556
|
Whether to enable the rest element fixer (see
|
|
16457
16557
|
"Rest Element (`RestElement`) insertions"). Defaults to `true`.
|
|
16458
16558
|
|
|
16459
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16460
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16559
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-checkrestproperty-1"></a>
|
|
16560
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-checkrestproperty-1"></a>
|
|
16461
16561
|
##### <code>checkRestProperty</code>
|
|
16462
16562
|
|
|
16463
16563
|
If set to `true`, will report (and add fixer insertions) for missing rest
|
|
@@ -16511,15 +16611,15 @@ function quux ({num, ...extra}) {
|
|
|
16511
16611
|
}
|
|
16512
16612
|
```
|
|
16513
16613
|
|
|
16514
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16515
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16614
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-autoincrementbase"></a>
|
|
16615
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-autoincrementbase"></a>
|
|
16516
16616
|
##### <code>autoIncrementBase</code>
|
|
16517
16617
|
|
|
16518
16618
|
Numeric to indicate the number at which to begin auto-incrementing roots.
|
|
16519
16619
|
Defaults to `0`.
|
|
16520
16620
|
|
|
16521
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16522
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16621
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-unnamedrootbase"></a>
|
|
16622
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-unnamedrootbase"></a>
|
|
16523
16623
|
##### <code>unnamedRootBase</code>
|
|
16524
16624
|
|
|
16525
16625
|
An array of root names to use in the fixer when roots are missing. Defaults
|
|
@@ -16545,8 +16645,8 @@ function quux ({foo}, [bar], {baz}) {
|
|
|
16545
16645
|
*/
|
|
16546
16646
|
```
|
|
16547
16647
|
|
|
16548
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16549
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16648
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-exemptedby-1"></a>
|
|
16649
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-exemptedby-1"></a>
|
|
16550
16650
|
##### <code>exemptedBy</code>
|
|
16551
16651
|
|
|
16552
16652
|
Array of tags (e.g., `['type']`) whose presence on the document block
|
|
@@ -16555,8 +16655,8 @@ avoids the need for a `@param`. Defaults to an array with
|
|
|
16555
16655
|
so be sure to add back `inheritdoc` if you wish its presence to cause
|
|
16556
16656
|
exemption of the rule.
|
|
16557
16657
|
|
|
16558
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16559
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16658
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-checktypespattern-1"></a>
|
|
16659
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-checktypespattern-1"></a>
|
|
16560
16660
|
##### <code>checkTypesPattern</code>
|
|
16561
16661
|
|
|
16562
16662
|
When one specifies a type, unless it is of a generic type, like `object`
|
|
@@ -16591,8 +16691,8 @@ You could set this regular expression to a more expansive list, or you
|
|
|
16591
16691
|
could restrict it such that even types matching those strings would not
|
|
16592
16692
|
need destructuring.
|
|
16593
16693
|
|
|
16594
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16595
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16694
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-contexts-12"></a>
|
|
16695
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-contexts-12"></a>
|
|
16596
16696
|
##### <code>contexts</code>
|
|
16597
16697
|
|
|
16598
16698
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -16604,33 +16704,33 @@ which are checked.
|
|
|
16604
16704
|
See the ["AST and Selectors"](#user-content-eslint-plugin-jsdoc-advanced-ast-and-selectors)
|
|
16605
16705
|
section of our README for more on the expected format.
|
|
16606
16706
|
|
|
16607
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16608
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16707
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-checkconstructors-2"></a>
|
|
16708
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-checkconstructors-2"></a>
|
|
16609
16709
|
##### <code>checkConstructors</code>
|
|
16610
16710
|
|
|
16611
16711
|
A value indicating whether `constructor`s should be checked. Defaults to
|
|
16612
16712
|
`true`.
|
|
16613
16713
|
|
|
16614
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16615
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16714
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-checkgetters-2"></a>
|
|
16715
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-checkgetters-2"></a>
|
|
16616
16716
|
##### <code>checkGetters</code>
|
|
16617
16717
|
|
|
16618
16718
|
A value indicating whether getters should be checked. Defaults to `false`.
|
|
16619
16719
|
|
|
16620
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16621
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16720
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-checksetters-2"></a>
|
|
16721
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-checksetters-2"></a>
|
|
16622
16722
|
##### <code>checkSetters</code>
|
|
16623
16723
|
|
|
16624
16724
|
A value indicating whether setters should be checked. Defaults to `false`.
|
|
16625
16725
|
|
|
16626
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16627
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16726
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-checkdestructured-1"></a>
|
|
16727
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-checkdestructured-1"></a>
|
|
16628
16728
|
##### <code>checkDestructured</code>
|
|
16629
16729
|
|
|
16630
16730
|
Whether to require destructured properties. Defaults to `true`.
|
|
16631
16731
|
|
|
16632
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16633
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16732
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-checkdestructuredroots"></a>
|
|
16733
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-checkdestructuredroots"></a>
|
|
16634
16734
|
##### <code>checkDestructuredRoots</code>
|
|
16635
16735
|
|
|
16636
16736
|
Whether to check the existence of a corresponding `@param` for root objects
|
|
@@ -16643,8 +16743,8 @@ implied to be `false` (i.e., the inside of the roots will not be checked
|
|
|
16643
16743
|
either, e.g., it will also not complain if `a` or `b` do not have their own
|
|
16644
16744
|
documentation). Defaults to `true`.
|
|
16645
16745
|
|
|
16646
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-
|
|
16647
|
-
<a name="eslint-plugin-jsdoc-rules-require-param-options-
|
|
16746
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-param-options-33-usedefaultobjectproperties-1"></a>
|
|
16747
|
+
<a name="eslint-plugin-jsdoc-rules-require-param-options-33-usedefaultobjectproperties-1"></a>
|
|
16648
16748
|
##### <code>useDefaultObjectProperties</code>
|
|
16649
16749
|
|
|
16650
16750
|
Set to `true` if you wish to expect documentation of properties on objects
|
|
@@ -18329,8 +18429,8 @@ is found. Also reports if `@returns {never}` is discovered with a return value.
|
|
|
18329
18429
|
|
|
18330
18430
|
Will also report if multiple `@returns` tags are present.
|
|
18331
18431
|
|
|
18332
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-check-options-
|
|
18333
|
-
<a name="eslint-plugin-jsdoc-rules-require-returns-check-options-
|
|
18432
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-check-options-34"></a>
|
|
18433
|
+
<a name="eslint-plugin-jsdoc-rules-require-returns-check-options-34"></a>
|
|
18334
18434
|
#### Options
|
|
18335
18435
|
|
|
18336
18436
|
- `exemptGenerators`- Because a generator might be labeled as having a
|
|
@@ -19356,12 +19456,12 @@ Requires that the `@returns` tag has a `description` value. The error
|
|
|
19356
19456
|
will not be reported if the return value is `void` or `undefined`
|
|
19357
19457
|
or if it is `Promise<void>` or `Promise<undefined>`.
|
|
19358
19458
|
|
|
19359
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-description-options-
|
|
19360
|
-
<a name="eslint-plugin-jsdoc-rules-require-returns-description-options-
|
|
19459
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-description-options-35"></a>
|
|
19460
|
+
<a name="eslint-plugin-jsdoc-rules-require-returns-description-options-35"></a>
|
|
19361
19461
|
#### Options
|
|
19362
19462
|
|
|
19363
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-description-options-
|
|
19364
|
-
<a name="eslint-plugin-jsdoc-rules-require-returns-description-options-
|
|
19463
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-description-options-35-contexts-13"></a>
|
|
19464
|
+
<a name="eslint-plugin-jsdoc-rules-require-returns-description-options-35-contexts-13"></a>
|
|
19365
19465
|
##### <code>contexts</code>
|
|
19366
19466
|
|
|
19367
19467
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -19515,12 +19615,12 @@ function quux () {
|
|
|
19515
19615
|
|
|
19516
19616
|
Requires that `@returns` tag has `type` value.
|
|
19517
19617
|
|
|
19518
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-type-options-
|
|
19519
|
-
<a name="eslint-plugin-jsdoc-rules-require-returns-type-options-
|
|
19618
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-type-options-36"></a>
|
|
19619
|
+
<a name="eslint-plugin-jsdoc-rules-require-returns-type-options-36"></a>
|
|
19520
19620
|
#### Options
|
|
19521
19621
|
|
|
19522
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-type-options-
|
|
19523
|
-
<a name="eslint-plugin-jsdoc-rules-require-returns-type-options-
|
|
19622
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-type-options-36-contexts-14"></a>
|
|
19623
|
+
<a name="eslint-plugin-jsdoc-rules-require-returns-type-options-36-contexts-14"></a>
|
|
19524
19624
|
##### <code>contexts</code>
|
|
19525
19625
|
|
|
19526
19626
|
Set this to an array of strings representing the AST context (or an object with
|
|
@@ -19641,8 +19741,8 @@ Requires that returns are documented.
|
|
|
19641
19741
|
|
|
19642
19742
|
Will also report if multiple `@returns` tags are present.
|
|
19643
19743
|
|
|
19644
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-options-
|
|
19645
|
-
<a name="eslint-plugin-jsdoc-rules-require-returns-options-
|
|
19744
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-returns-options-37"></a>
|
|
19745
|
+
<a name="eslint-plugin-jsdoc-rules-require-returns-options-37"></a>
|
|
19646
19746
|
#### Options
|
|
19647
19747
|
|
|
19648
19748
|
- `checkConstructors` - A value indicating whether `constructor`s should
|
|
@@ -20791,8 +20891,8 @@ for our desire for a separate tag to document rejection types and see
|
|
|
20791
20891
|
[this discussion](https://stackoverflow.com/questions/50071115/typescript-promise-rejection-type)
|
|
20792
20892
|
on why TypeScript doesn't offer such a feature.
|
|
20793
20893
|
|
|
20794
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-throws-options-
|
|
20795
|
-
<a name="eslint-plugin-jsdoc-rules-require-throws-options-
|
|
20894
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-throws-options-38"></a>
|
|
20895
|
+
<a name="eslint-plugin-jsdoc-rules-require-throws-options-38"></a>
|
|
20796
20896
|
#### Options
|
|
20797
20897
|
|
|
20798
20898
|
- `exemptedBy` - Array of tags (e.g., `['type']`) whose presence on the
|
|
@@ -21096,8 +21196,8 @@ Will also report if multiple `@yields` tags are present.
|
|
|
21096
21196
|
See the `next`, `forceRequireNext`, and `nextWithGeneratorTag` options for an
|
|
21097
21197
|
option to expect a non-standard `@next` tag.
|
|
21098
21198
|
|
|
21099
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-yields-options-
|
|
21100
|
-
<a name="eslint-plugin-jsdoc-rules-require-yields-options-
|
|
21199
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-yields-options-39"></a>
|
|
21200
|
+
<a name="eslint-plugin-jsdoc-rules-require-yields-options-39"></a>
|
|
21101
21201
|
#### Options
|
|
21102
21202
|
|
|
21103
21203
|
- `exemptedBy` - Array of tags (e.g., `['type']`) whose presence on the
|
|
@@ -21908,8 +22008,8 @@ function bodies.
|
|
|
21908
22008
|
|
|
21909
22009
|
Will also report if multiple `@yields` tags are present.
|
|
21910
22010
|
|
|
21911
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-require-yields-check-options-
|
|
21912
|
-
<a name="eslint-plugin-jsdoc-rules-require-yields-check-options-
|
|
22011
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-require-yields-check-options-40"></a>
|
|
22012
|
+
<a name="eslint-plugin-jsdoc-rules-require-yields-check-options-40"></a>
|
|
21913
22013
|
#### Options
|
|
21914
22014
|
|
|
21915
22015
|
- `checkGeneratorsOnly` - Avoids checking the function body and merely insists
|
|
@@ -22433,12 +22533,12 @@ line break setting this rule will attempt to do when not disabled.
|
|
|
22433
22533
|
You may, however, safely set the "any" option in that rule along with
|
|
22434
22534
|
`startLines` and/or `endLines`.
|
|
22435
22535
|
|
|
22436
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22437
|
-
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22536
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-41"></a>
|
|
22537
|
+
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-41"></a>
|
|
22438
22538
|
#### Options
|
|
22439
22539
|
|
|
22440
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22441
|
-
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22540
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-41-tagsequence"></a>
|
|
22541
|
+
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-41-tagsequence"></a>
|
|
22442
22542
|
##### <code>tagSequence</code>
|
|
22443
22543
|
|
|
22444
22544
|
An array of tag group objects indicating the preferred sequence for sorting tags.
|
|
@@ -22622,8 +22722,8 @@ a fixed order that doesn't change into the future, supply your own
|
|
|
22622
22722
|
]}];
|
|
22623
22723
|
```
|
|
22624
22724
|
|
|
22625
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22626
|
-
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22725
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-41-alphabetizeextras"></a>
|
|
22726
|
+
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-41-alphabetizeextras"></a>
|
|
22627
22727
|
##### <code>alphabetizeExtras</code>
|
|
22628
22728
|
|
|
22629
22729
|
Defaults to `false`. Alphabetizes any items not within `tagSequence` after any
|
|
@@ -22633,16 +22733,16 @@ are sorted.
|
|
|
22633
22733
|
If you want all your tags alphabetized, you can supply an empty array for
|
|
22634
22734
|
`tagSequence` along with setting this option to `true`.
|
|
22635
22735
|
|
|
22636
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22637
|
-
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22736
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-41-linesbetween"></a>
|
|
22737
|
+
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-41-linesbetween"></a>
|
|
22638
22738
|
##### <code>linesBetween</code>
|
|
22639
22739
|
|
|
22640
22740
|
Indicates the number of lines to be added between tag groups. Defaults to 1.
|
|
22641
22741
|
Do not set to 0 or 2+ if you are using `tag-lines` and `"always"` and do not
|
|
22642
22742
|
set to 1+ if you are using `tag-lines` and `"never"`.
|
|
22643
22743
|
|
|
22644
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22645
|
-
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22744
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-41-reporttaggroupspacing"></a>
|
|
22745
|
+
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-41-reporttaggroupspacing"></a>
|
|
22646
22746
|
##### <code>reportTagGroupSpacing</code>
|
|
22647
22747
|
|
|
22648
22748
|
Whether to enable reporting and fixing of line breaks between tag groups
|
|
@@ -22650,8 +22750,8 @@ as set by `linesBetween`. Defaults to `true`. Note that the very last tag
|
|
|
22650
22750
|
will not have spacing applied regardless. For adding line breaks there, you
|
|
22651
22751
|
may wish to use the `endLines` option of the `tag-lines` rule.
|
|
22652
22752
|
|
|
22653
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22654
|
-
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-
|
|
22753
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-sort-tags-options-41-reportintrataggroupspacing"></a>
|
|
22754
|
+
<a name="eslint-plugin-jsdoc-rules-sort-tags-options-41-reportintrataggroupspacing"></a>
|
|
22655
22755
|
##### <code>reportIntraTagGroupSpacing</code>
|
|
22656
22756
|
|
|
22657
22757
|
Whether to enable reporting and fixing of line breaks within tags of a given
|
|
@@ -23029,8 +23129,8 @@ The "always" or "never" options of this rule should not
|
|
|
23029
23129
|
be used with the linebreak-setting options of the `sort-tags` rule as both
|
|
23030
23130
|
may try to impose a conflicting number of lines.
|
|
23031
23131
|
|
|
23032
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23033
|
-
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23132
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-42"></a>
|
|
23133
|
+
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-42"></a>
|
|
23034
23134
|
#### Options
|
|
23035
23135
|
|
|
23036
23136
|
The first option is a single string set to "always", "never", or "any"
|
|
@@ -23044,36 +23144,36 @@ between tags.
|
|
|
23044
23144
|
|
|
23045
23145
|
The second option is an object with the following optional properties.
|
|
23046
23146
|
|
|
23047
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23048
|
-
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23147
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-42-count-defaults-to-1"></a>
|
|
23148
|
+
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-42-count-defaults-to-1"></a>
|
|
23049
23149
|
##### <code>count</code> (defaults to 1)
|
|
23050
23150
|
|
|
23051
23151
|
Use with "always" to indicate the number of lines to require be present.
|
|
23052
23152
|
|
|
23053
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23054
|
-
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23153
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-42-applytoendtag-defaults-to-true"></a>
|
|
23154
|
+
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-42-applytoendtag-defaults-to-true"></a>
|
|
23055
23155
|
##### <code>applyToEndTag</code> (defaults to <code>true</code>)
|
|
23056
23156
|
|
|
23057
23157
|
Set to `false` and use with "always" to indicate the normal lines to be
|
|
23058
23158
|
added after tags should not be added after the final tag.
|
|
23059
23159
|
|
|
23060
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23061
|
-
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23160
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-42-startlines-defaults-to-0"></a>
|
|
23161
|
+
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-42-startlines-defaults-to-0"></a>
|
|
23062
23162
|
##### <code>startLines</code> (defaults to <code>0</code>)
|
|
23063
23163
|
|
|
23064
23164
|
If not set to `null`, will enforce end lines to the given count before the
|
|
23065
23165
|
first tag only, unless there is only whitespace content, in which case,
|
|
23066
23166
|
a line count will not be enforced.
|
|
23067
23167
|
|
|
23068
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23069
|
-
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23168
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-42-endlines-defaults-to-0"></a>
|
|
23169
|
+
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-42-endlines-defaults-to-0"></a>
|
|
23070
23170
|
##### <code>endLines</code> (defaults to <code>0</code>)
|
|
23071
23171
|
|
|
23072
23172
|
If not set to `null`, will enforce end lines to the given count on the
|
|
23073
23173
|
final tag only.
|
|
23074
23174
|
|
|
23075
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23076
|
-
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-
|
|
23175
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-tag-lines-options-42-tags-default-to-empty-object"></a>
|
|
23176
|
+
<a name="eslint-plugin-jsdoc-rules-tag-lines-options-42-tags-default-to-empty-object"></a>
|
|
23077
23177
|
##### <code>tags</code> (default to empty object)
|
|
23078
23178
|
|
|
23079
23179
|
Overrides the default behavior depending on specific tags.
|
|
@@ -23548,19 +23648,19 @@ Markdown and you therefore do not wish for it to be accidentally interpreted
|
|
|
23548
23648
|
as such by the likes of Visual Studio Code or if you wish to view it escaped
|
|
23549
23649
|
within it or your documentation.
|
|
23550
23650
|
|
|
23551
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-text-escaping-options-
|
|
23552
|
-
<a name="eslint-plugin-jsdoc-rules-text-escaping-options-
|
|
23651
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-text-escaping-options-43"></a>
|
|
23652
|
+
<a name="eslint-plugin-jsdoc-rules-text-escaping-options-43"></a>
|
|
23553
23653
|
#### Options
|
|
23554
23654
|
|
|
23555
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-text-escaping-options-
|
|
23556
|
-
<a name="eslint-plugin-jsdoc-rules-text-escaping-options-
|
|
23655
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-text-escaping-options-43-escapehtml"></a>
|
|
23656
|
+
<a name="eslint-plugin-jsdoc-rules-text-escaping-options-43-escapehtml"></a>
|
|
23557
23657
|
##### <code>escapeHTML</code>
|
|
23558
23658
|
|
|
23559
23659
|
This option escapes all `<` and `&` characters (except those followed by
|
|
23560
23660
|
whitespace which are treated as literals by Visual Studio Code).
|
|
23561
23661
|
|
|
23562
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-text-escaping-options-
|
|
23563
|
-
<a name="eslint-plugin-jsdoc-rules-text-escaping-options-
|
|
23662
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-text-escaping-options-43-escapemarkdown"></a>
|
|
23663
|
+
<a name="eslint-plugin-jsdoc-rules-text-escaping-options-43-escapemarkdown"></a>
|
|
23564
23664
|
##### <code>escapeMarkdown</code>
|
|
23565
23665
|
|
|
23566
23666
|
This option escapes the first backtick (`` ` ``) in a paired sequence.
|
|
@@ -23767,8 +23867,8 @@ for valid types (based on the tag's `type` value), and either portion checked
|
|
|
23767
23867
|
for presence (based on `false` `name` or `type` values or their `required`
|
|
23768
23868
|
value). See the setting for more details.
|
|
23769
23869
|
|
|
23770
|
-
<a name="user-content-eslint-plugin-jsdoc-rules-valid-types-options-
|
|
23771
|
-
<a name="eslint-plugin-jsdoc-rules-valid-types-options-
|
|
23870
|
+
<a name="user-content-eslint-plugin-jsdoc-rules-valid-types-options-44"></a>
|
|
23871
|
+
<a name="eslint-plugin-jsdoc-rules-valid-types-options-44"></a>
|
|
23772
23872
|
#### Options
|
|
23773
23873
|
|
|
23774
23874
|
- `allowEmptyNamepaths` (default: true) - Set to `false` to bulk disallow
|