You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>JSDoc allows you to use unrecognized tags (<code>tags.allowUnknownTags</code>);</li>
73
+
<li>Both standard JSDoc tags and <ahref="https://developers.google.com/closure/compiler/docs/js-for-compiler#tags">Closure Compiler tags</a> are enabled (
74
+
<code>tags.dictionaries</code>);</li>
73
75
<li>Only files ending in ".js" and ".jsdoc" will be processed (<code>source.includePattern</code>);</li>
74
76
<li>Any file starting with an underscore or in a directory starting with an underscore will be
<code>{@link MyNamespace.myFunction}</code> will be in monospace.</p>
208
210
<p>If <code>templates.cleverLinks</code> is true, it is used and <code>templates.monospaceLinks</code> is ignored.</p>
209
211
<p>Also, there are {@linkcode ...} and {@linkplain ...} if one wishes to force the link to be rendered in monospace or normal font respectively (see <ahref="tags-inline-link.html">@link, @linkcode and @linkplain</a> for further information).</p>
210
-
<h3id="miscellaneous">Miscellaneous</h3>
211
-
<p>The <code>tags.allowUnknownTags</code> property determines whether tags unrecognised by JSDoc are permitted. If this is false and JSDoc encounters a tag it does
212
-
not recognise (e.g. <code>@foobar</code>), it will throw an error. Otherwise, it will just ignore the tag.</p>
213
-
<p>By default, it is true.</p>
214
-
<figure><preclass="prettyprint"><code>"tags": {
215
-
"allowUnknownTags": true
212
+
<h2id="tags-and-tag-dictionaries">Tags and tag dictionaries</h2>
213
+
<p>The options in <code>tags</code> control which JSDoc tags are allowed and how each tag is interpreted.</p>
<p>The <code>tags.allowUnknownTags</code> property affects how JSDoc handles unrecognized tags. If you set this option to <code>false</code>, and JSDoc finds a
221
+
tag that it does not recognize (for example, <code>@foo</code>), JSDoc logs a warning. By default, this option is set to <code>true</code>.</p>
222
+
<p>The <code>tags.dictionaries</code> property controls which tags JSDoc recognizes, as well as how JSDoc interprets the tags that it recognizes. In JSDoc 3.3.0
223
+
and later, there are two built-in tag dictionaries:
<p>By default, both dictionaries are enabled. Also, by default, the <code>jsdoc</code> dictionary is listed first; as a result, if the <code>jsdoc</code> dictionary
230
+
handles a tag differently than the <code>closure</code> dictionary, the
231
+
<code>jsdoc</code> version of the tag takes precedence.</p>
232
+
<p>If you are using JSDoc with a Closure Compiler project, and you want to avoid using tags that Closure Compiler does not recognize, change the <code>tags.dictionaries</code> setting to <code>["closure"]</code>. You can also change this setting to <code>["closure","jsdoc"]</code> if you want to allow
233
+
core JSDoc tags, but you want to ensure that Closure Compiler-specific tags are interpreted as Closure Compiler would interpret them.</p>
0 commit comments