|
6 | 6 | * [Options](#user-content-check-tag-names-options)
|
7 | 7 | * [`definedTags`](#user-content-check-tag-names-options-definedtags)
|
8 | 8 | * [`enableFixer`](#user-content-check-tag-names-options-enablefixer)
|
| 9 | + * [`inlineTags`](#user-content-check-tag-names-options-inlinetags) |
9 | 10 | * [`jsxTags`](#user-content-check-tag-names-options-jsxtags)
|
10 | 11 | * [`typed`](#user-content-check-tag-names-options-typed)
|
11 | 12 | * [Context and settings](#user-content-check-tag-names-context-and-settings)
|
@@ -203,6 +204,16 @@ tag to `false`:
|
203 | 204 | }
|
204 | 205 | ```
|
205 | 206 |
|
| 207 | +Also checks for unknown inline tags, with the following being permitted by default |
| 208 | +(see the `inlineTags` option): |
| 209 | + |
| 210 | +``` |
| 211 | +link |
| 212 | +linkcode |
| 213 | +linkplain |
| 214 | +tutorial |
| 215 | +``` |
| 216 | + |
206 | 217 | <a name="user-content-check-tag-names-fixer"></a>
|
207 | 218 | <a name="check-tag-names-fixer"></a>
|
208 | 219 | ## Fixer
|
@@ -232,6 +243,13 @@ The format is as follows:
|
232 | 243 | ### <code>enableFixer</code>
|
233 | 244 |
|
234 | 245 | Set to `false` to disable auto-removal of types that are redundant with the [`typed` option](#user-content-typed).
|
| 246 | +<a name="user-content-check-tag-names-options-inlinetags"></a> |
| 247 | +<a name="check-tag-names-options-inlinetags"></a> |
| 248 | +### <code>inlineTags</code> |
| 249 | + |
| 250 | +List of tags to allow inline. |
| 251 | + |
| 252 | +Defaults to array of `'link', 'linkcode', 'linkplain', 'tutorial'` |
235 | 253 | <a name="user-content-check-tag-names-options-jsxtags"></a>
|
236 | 254 | <a name="check-tag-names-options-jsxtags"></a>
|
237 | 255 | ### <code>jsxTags</code>
|
|
313 | 331 | |Context|everywhere|
|
314 | 332 | |Tags|N/A|
|
315 | 333 | |Recommended|true|
|
316 |
| -|Options|`definedTags`, `enableFixer`, `jsxTags`, `typed`| |
| 334 | +|Options|`definedTags`, `enableFixer`, `inlineTags`, `jsxTags`, `typed`| |
317 | 335 | |Settings|`tagNamePreference`, `mode`|
|
318 | 336 |
|
319 | 337 | <a name="user-content-check-tag-names-failing-examples"></a>
|
@@ -765,6 +783,13 @@ function quux () {
|
765 | 783 | }
|
766 | 784 | // Settings: {"jsdoc":{"tagNamePreference":{"todo":{"message":"Please don't use todo"}}}}
|
767 | 785 | // Message: Please don't use todo
|
| 786 | + |
| 787 | +/** |
| 788 | + * An {@inline sth} tag in the description and {@another} with a {@link}. |
| 789 | + * @param {SomeType} name And an {@inlineTag} inside a tag description. |
| 790 | + * @param {AnotherType} anotherName And yet {@another} |
| 791 | + */ |
| 792 | +// Message: Invalid JSDoc inline tag name "inline" |
768 | 793 | ````
|
769 | 794 |
|
770 | 795 |
|
@@ -1121,5 +1146,12 @@ interface WebTwain {
|
1121 | 1146 | * A comment related to the module
|
1122 | 1147 | */
|
1123 | 1148 | // "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
|
| 1149 | + |
| 1150 | +/** |
| 1151 | + * An {@inline sth} tag in the description and {@another} with a {@link}. |
| 1152 | + * @param {SomeType} name And an {@inlineTag} inside a tag description. |
| 1153 | + * @param {AnotherType} anotherName And yet {@another} |
| 1154 | + */ |
| 1155 | +// "jsdoc/check-tag-names": ["error"|"warn", {"inlineTags":["inline","another","inlineTag","link"]}] |
1124 | 1156 | ````
|
1125 | 1157 |
|
0 commit comments