@depup/eslint-plugin-jsdoc 62.8.0-depup.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 (430) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +33 -0
  3. package/changes.json +18 -0
  4. package/dist/WarnSettings.cjs +38 -0
  5. package/dist/WarnSettings.cjs.map +1 -0
  6. package/dist/WarnSettings.d.ts +17 -0
  7. package/dist/alignTransform.cjs +402 -0
  8. package/dist/alignTransform.cjs.map +1 -0
  9. package/dist/alignTransform.d.ts +34 -0
  10. package/dist/buildForbidRuleDefinition.cjs +101 -0
  11. package/dist/buildForbidRuleDefinition.cjs.map +1 -0
  12. package/dist/buildForbidRuleDefinition.d.ts +15 -0
  13. package/dist/buildRejectOrPreferRuleDefinition.cjs +352 -0
  14. package/dist/buildRejectOrPreferRuleDefinition.cjs.map +1 -0
  15. package/dist/buildRejectOrPreferRuleDefinition.d.ts +9 -0
  16. package/dist/cjs/WarnSettings.d.ts +16 -0
  17. package/dist/cjs/alignTransform.d.ts +33 -0
  18. package/dist/cjs/buildForbidRuleDefinition.d.ts +14 -0
  19. package/dist/cjs/buildRejectOrPreferRuleDefinition.d.ts +8 -0
  20. package/dist/cjs/defaultTagOrder.d.ts +4 -0
  21. package/dist/cjs/exportParser.d.ts +40 -0
  22. package/dist/cjs/getDefaultTagStructureForMode.d.ts +10 -0
  23. package/dist/cjs/getJsdocProcessorPlugin.d.cts +5 -0
  24. package/dist/cjs/getJsdocProcessorPlugin.d.ts +66 -0
  25. package/dist/cjs/index-cjs.d.ts +23 -0
  26. package/dist/cjs/index.cjs.d.cts +2 -0
  27. package/dist/cjs/iterateJsdoc.d.cts +7 -0
  28. package/dist/cjs/iterateJsdoc.d.ts +495 -0
  29. package/dist/cjs/jsdocUtils.d.ts +493 -0
  30. package/dist/cjs/rules/checkAccess.d.ts +2 -0
  31. package/dist/cjs/rules/checkAlignment.d.ts +2 -0
  32. package/dist/cjs/rules/checkExamples.d.ts +3 -0
  33. package/dist/cjs/rules/checkIndentation.d.ts +2 -0
  34. package/dist/cjs/rules/checkLineAlignment.d.ts +9 -0
  35. package/dist/cjs/rules/checkParamNames.d.ts +2 -0
  36. package/dist/cjs/rules/checkPropertyNames.d.ts +2 -0
  37. package/dist/cjs/rules/checkSyntax.d.ts +2 -0
  38. package/dist/cjs/rules/checkTagNames.d.ts +2 -0
  39. package/dist/cjs/rules/checkTemplateNames.d.ts +2 -0
  40. package/dist/cjs/rules/checkTypes.d.ts +7 -0
  41. package/dist/cjs/rules/checkValues.d.ts +2 -0
  42. package/dist/cjs/rules/convertToJsdocComments.d.ts +266 -0
  43. package/dist/cjs/rules/emptyTags.d.ts +2 -0
  44. package/dist/cjs/rules/escapeInlineTags.d.ts +2 -0
  45. package/dist/cjs/rules/implementsOnClasses.d.ts +2 -0
  46. package/dist/cjs/rules/importsAsDependencies.d.ts +2 -0
  47. package/dist/cjs/rules/informativeDocs.d.ts +2 -0
  48. package/dist/cjs/rules/linesBeforeBlock.d.ts +2 -0
  49. package/dist/cjs/rules/matchDescription.d.ts +2 -0
  50. package/dist/cjs/rules/matchName.d.ts +2 -0
  51. package/dist/cjs/rules/multilineBlocks.d.ts +2 -0
  52. package/dist/cjs/rules/noBadBlocks.d.ts +2 -0
  53. package/dist/cjs/rules/noBlankBlockDescriptions.d.ts +2 -0
  54. package/dist/cjs/rules/noBlankBlocks.d.ts +2 -0
  55. package/dist/cjs/rules/noDefaults.d.ts +2 -0
  56. package/dist/cjs/rules/noMissingSyntax.d.ts +9 -0
  57. package/dist/cjs/rules/noMultiAsterisks.d.ts +2 -0
  58. package/dist/cjs/rules/noRestrictedSyntax.d.ts +2 -0
  59. package/dist/cjs/rules/noTypes.d.ts +2 -0
  60. package/dist/cjs/rules/noUndefinedTypes.d.ts +2 -0
  61. package/dist/cjs/rules/preferImportTag.d.ts +2 -0
  62. package/dist/cjs/rules/requireAsteriskPrefix.d.ts +2 -0
  63. package/dist/cjs/rules/requireDescription.d.ts +2 -0
  64. package/dist/cjs/rules/requireDescriptionCompleteSentence.d.ts +2 -0
  65. package/dist/cjs/rules/requireExample.d.ts +2 -0
  66. package/dist/cjs/rules/requireFileOverview.d.ts +2 -0
  67. package/dist/cjs/rules/requireHyphenBeforeParamDescription.d.ts +2 -0
  68. package/dist/cjs/rules/requireJsdoc.d.ts +24 -0
  69. package/dist/cjs/rules/requireParam.d.ts +3 -0
  70. package/dist/cjs/rules/requireParamDescription.d.ts +2 -0
  71. package/dist/cjs/rules/requireParamName.d.ts +2 -0
  72. package/dist/cjs/rules/requireParamType.d.ts +2 -0
  73. package/dist/cjs/rules/requireProperty.d.ts +2 -0
  74. package/dist/cjs/rules/requirePropertyDescription.d.ts +2 -0
  75. package/dist/cjs/rules/requirePropertyName.d.ts +2 -0
  76. package/dist/cjs/rules/requirePropertyType.d.ts +2 -0
  77. package/dist/cjs/rules/requireRejects.d.ts +2 -0
  78. package/dist/cjs/rules/requireReturns.d.ts +2 -0
  79. package/dist/cjs/rules/requireReturnsCheck.d.ts +2 -0
  80. package/dist/cjs/rules/requireReturnsDescription.d.ts +2 -0
  81. package/dist/cjs/rules/requireReturnsType.d.ts +2 -0
  82. package/dist/cjs/rules/requireTags.d.ts +2 -0
  83. package/dist/cjs/rules/requireTemplate.d.ts +2 -0
  84. package/dist/cjs/rules/requireThrows.d.ts +2 -0
  85. package/dist/cjs/rules/requireYields.d.ts +2 -0
  86. package/dist/cjs/rules/requireYieldsCheck.d.ts +2 -0
  87. package/dist/cjs/rules/sortTags.d.ts +2 -0
  88. package/dist/cjs/rules/tagLines.d.ts +2 -0
  89. package/dist/cjs/rules/textEscaping.d.ts +2 -0
  90. package/dist/cjs/rules/tsMethodSignatureStyle.d.ts +2 -0
  91. package/dist/cjs/rules/tsNoEmptyObjectType.d.ts +2 -0
  92. package/dist/cjs/rules/tsNoUnnecessaryTemplateExpression.d.ts +2 -0
  93. package/dist/cjs/rules/tsPreferFunctionType.d.ts +2 -0
  94. package/dist/cjs/rules/typeFormatting.d.ts +2 -0
  95. package/dist/cjs/rules/validTypes.d.ts +2 -0
  96. package/dist/cjs/tagNames.d.ts +15 -0
  97. package/dist/cjs/utils/hasReturnValue.d.ts +19 -0
  98. package/dist/defaultTagOrder.cjs +46 -0
  99. package/dist/defaultTagOrder.cjs.map +1 -0
  100. package/dist/defaultTagOrder.d.ts +5 -0
  101. package/dist/exportParser.cjs +732 -0
  102. package/dist/exportParser.cjs.map +1 -0
  103. package/dist/exportParser.d.ts +41 -0
  104. package/dist/generateDocs.cjs +342 -0
  105. package/dist/generateDocs.cjs.map +1 -0
  106. package/dist/generateOptions.cjs +62 -0
  107. package/dist/generateOptions.cjs.map +1 -0
  108. package/dist/generateRule.cjs +248 -0
  109. package/dist/generateRule.cjs.map +1 -0
  110. package/dist/generateRuleTypes.cjs +24 -0
  111. package/dist/generateRuleTypes.cjs.map +1 -0
  112. package/dist/getDefaultTagStructureForMode.cjs +289 -0
  113. package/dist/getDefaultTagStructureForMode.cjs.map +1 -0
  114. package/dist/getDefaultTagStructureForMode.d.ts +11 -0
  115. package/dist/getJsdocProcessorPlugin.cjs +587 -0
  116. package/dist/getJsdocProcessorPlugin.cjs.map +1 -0
  117. package/dist/getJsdocProcessorPlugin.cts +5 -0
  118. package/dist/getJsdocProcessorPlugin.d.ts +67 -0
  119. package/dist/index-cjs.cjs +595 -0
  120. package/dist/index-cjs.cjs.map +1 -0
  121. package/dist/index-cjs.d.ts +24 -0
  122. package/dist/index-esm.cjs +162 -0
  123. package/dist/index-esm.cjs.map +1 -0
  124. package/dist/index-esm.d.ts +72 -0
  125. package/dist/index.cjs +743 -0
  126. package/dist/index.cjs.cts +3 -0
  127. package/dist/index.cjs.map +1 -0
  128. package/dist/index.d.ts +93 -0
  129. package/dist/iterateJsdoc.cjs +2150 -0
  130. package/dist/iterateJsdoc.cjs.map +1 -0
  131. package/dist/iterateJsdoc.cts +7 -0
  132. package/dist/iterateJsdoc.d.ts +496 -0
  133. package/dist/jsdocUtils.cjs +1725 -0
  134. package/dist/jsdocUtils.cjs.map +1 -0
  135. package/dist/jsdocUtils.d.ts +494 -0
  136. package/dist/rules/checkAccess.cjs +40 -0
  137. package/dist/rules/checkAccess.cjs.map +1 -0
  138. package/dist/rules/checkAccess.d.ts +3 -0
  139. package/dist/rules/checkAlignment.cjs +78 -0
  140. package/dist/rules/checkAlignment.cjs.map +1 -0
  141. package/dist/rules/checkAlignment.d.ts +3 -0
  142. package/dist/rules/checkExamples.cjs +521 -0
  143. package/dist/rules/checkExamples.cjs.map +1 -0
  144. package/dist/rules/checkExamples.d.ts +4 -0
  145. package/dist/rules/checkIndentation.cjs +170 -0
  146. package/dist/rules/checkIndentation.cjs.map +1 -0
  147. package/dist/rules/checkIndentation.d.ts +3 -0
  148. package/dist/rules/checkLineAlignment.cjs +398 -0
  149. package/dist/rules/checkLineAlignment.cjs.map +1 -0
  150. package/dist/rules/checkLineAlignment.d.ts +10 -0
  151. package/dist/rules/checkParamNames.cjs +407 -0
  152. package/dist/rules/checkParamNames.cjs.map +1 -0
  153. package/dist/rules/checkParamNames.d.ts +3 -0
  154. package/dist/rules/checkPropertyNames.cjs +135 -0
  155. package/dist/rules/checkPropertyNames.cjs.map +1 -0
  156. package/dist/rules/checkPropertyNames.d.ts +3 -0
  157. package/dist/rules/checkSyntax.cjs +38 -0
  158. package/dist/rules/checkSyntax.cjs.map +1 -0
  159. package/dist/rules/checkSyntax.d.ts +3 -0
  160. package/dist/rules/checkTagNames.cjs +312 -0
  161. package/dist/rules/checkTagNames.cjs.map +1 -0
  162. package/dist/rules/checkTagNames.d.ts +3 -0
  163. package/dist/rules/checkTemplateNames.cjs +185 -0
  164. package/dist/rules/checkTemplateNames.cjs.map +1 -0
  165. package/dist/rules/checkTemplateNames.d.ts +3 -0
  166. package/dist/rules/checkTypes.cjs +111 -0
  167. package/dist/rules/checkTypes.cjs.map +1 -0
  168. package/dist/rules/checkTypes.d.ts +8 -0
  169. package/dist/rules/checkValues.cjs +166 -0
  170. package/dist/rules/checkValues.cjs.map +1 -0
  171. package/dist/rules/checkValues.d.ts +3 -0
  172. package/dist/rules/convertToJsdocComments.cjs +356 -0
  173. package/dist/rules/convertToJsdocComments.cjs.map +1 -0
  174. package/dist/rules/convertToJsdocComments.d.ts +267 -0
  175. package/dist/rules/emptyTags.cjs +85 -0
  176. package/dist/rules/emptyTags.cjs.map +1 -0
  177. package/dist/rules/emptyTags.d.ts +3 -0
  178. package/dist/rules/escapeInlineTags.cjs +149 -0
  179. package/dist/rules/escapeInlineTags.cjs.map +1 -0
  180. package/dist/rules/escapeInlineTags.d.ts +3 -0
  181. package/dist/rules/implementsOnClasses.cjs +74 -0
  182. package/dist/rules/implementsOnClasses.cjs.map +1 -0
  183. package/dist/rules/implementsOnClasses.d.ts +3 -0
  184. package/dist/rules/importsAsDependencies.cjs +104 -0
  185. package/dist/rules/importsAsDependencies.cjs.map +1 -0
  186. package/dist/rules/importsAsDependencies.d.ts +3 -0
  187. package/dist/rules/informativeDocs.cjs +187 -0
  188. package/dist/rules/informativeDocs.cjs.map +1 -0
  189. package/dist/rules/informativeDocs.d.ts +3 -0
  190. package/dist/rules/linesBeforeBlock.cjs +120 -0
  191. package/dist/rules/linesBeforeBlock.cjs.map +1 -0
  192. package/dist/rules/linesBeforeBlock.d.ts +3 -0
  193. package/dist/rules/matchDescription.cjs +356 -0
  194. package/dist/rules/matchDescription.cjs.map +1 -0
  195. package/dist/rules/matchDescription.d.ts +3 -0
  196. package/dist/rules/matchName.cjs +160 -0
  197. package/dist/rules/matchName.cjs.map +1 -0
  198. package/dist/rules/matchName.d.ts +3 -0
  199. package/dist/rules/multilineBlocks.cjs +431 -0
  200. package/dist/rules/multilineBlocks.cjs.map +1 -0
  201. package/dist/rules/multilineBlocks.d.ts +3 -0
  202. package/dist/rules/noBadBlocks.cjs +100 -0
  203. package/dist/rules/noBadBlocks.cjs.map +1 -0
  204. package/dist/rules/noBadBlocks.d.ts +3 -0
  205. package/dist/rules/noBlankBlockDescriptions.cjs +63 -0
  206. package/dist/rules/noBlankBlockDescriptions.cjs.map +1 -0
  207. package/dist/rules/noBlankBlockDescriptions.d.ts +3 -0
  208. package/dist/rules/noBlankBlocks.cjs +54 -0
  209. package/dist/rules/noBlankBlocks.cjs.map +1 -0
  210. package/dist/rules/noBlankBlocks.d.ts +3 -0
  211. package/dist/rules/noDefaults.cjs +102 -0
  212. package/dist/rules/noDefaults.cjs.map +1 -0
  213. package/dist/rules/noDefaults.d.ts +3 -0
  214. package/dist/rules/noMissingSyntax.cjs +196 -0
  215. package/dist/rules/noMissingSyntax.cjs.map +1 -0
  216. package/dist/rules/noMissingSyntax.d.ts +10 -0
  217. package/dist/rules/noMultiAsterisks.cjs +126 -0
  218. package/dist/rules/noMultiAsterisks.cjs.map +1 -0
  219. package/dist/rules/noMultiAsterisks.d.ts +3 -0
  220. package/dist/rules/noRestrictedSyntax.cjs +68 -0
  221. package/dist/rules/noRestrictedSyntax.cjs.map +1 -0
  222. package/dist/rules/noRestrictedSyntax.d.ts +3 -0
  223. package/dist/rules/noTypes.cjs +101 -0
  224. package/dist/rules/noTypes.cjs.map +1 -0
  225. package/dist/rules/noTypes.d.ts +3 -0
  226. package/dist/rules/noUndefinedTypes.cjs +588 -0
  227. package/dist/rules/noUndefinedTypes.cjs.map +1 -0
  228. package/dist/rules/noUndefinedTypes.d.ts +3 -0
  229. package/dist/rules/preferImportTag.cjs +362 -0
  230. package/dist/rules/preferImportTag.cjs.map +1 -0
  231. package/dist/rules/preferImportTag.d.ts +3 -0
  232. package/dist/rules/requireAsteriskPrefix.cjs +190 -0
  233. package/dist/rules/requireAsteriskPrefix.cjs.map +1 -0
  234. package/dist/rules/requireAsteriskPrefix.d.ts +3 -0
  235. package/dist/rules/requireDescription.cjs +164 -0
  236. package/dist/rules/requireDescription.cjs.map +1 -0
  237. package/dist/rules/requireDescription.d.ts +3 -0
  238. package/dist/rules/requireDescriptionCompleteSentence.cjs +321 -0
  239. package/dist/rules/requireDescriptionCompleteSentence.cjs.map +1 -0
  240. package/dist/rules/requireDescriptionCompleteSentence.d.ts +3 -0
  241. package/dist/rules/requireExample.cjs +133 -0
  242. package/dist/rules/requireExample.cjs.map +1 -0
  243. package/dist/rules/requireExample.d.ts +3 -0
  244. package/dist/rules/requireFileOverview.cjs +194 -0
  245. package/dist/rules/requireFileOverview.cjs.map +1 -0
  246. package/dist/rules/requireFileOverview.d.ts +3 -0
  247. package/dist/rules/requireHyphenBeforeParamDescription.cjs +166 -0
  248. package/dist/rules/requireHyphenBeforeParamDescription.cjs.map +1 -0
  249. package/dist/rules/requireHyphenBeforeParamDescription.d.ts +3 -0
  250. package/dist/rules/requireJsdoc.cjs +722 -0
  251. package/dist/rules/requireJsdoc.cjs.map +1 -0
  252. package/dist/rules/requireJsdoc.d.ts +25 -0
  253. package/dist/rules/requireParam.cjs +772 -0
  254. package/dist/rules/requireParam.cjs.map +1 -0
  255. package/dist/rules/requireParam.d.ts +4 -0
  256. package/dist/rules/requireParamDescription.cjs +105 -0
  257. package/dist/rules/requireParamDescription.cjs.map +1 -0
  258. package/dist/rules/requireParamDescription.d.ts +3 -0
  259. package/dist/rules/requireParamName.cjs +68 -0
  260. package/dist/rules/requireParamName.cjs.map +1 -0
  261. package/dist/rules/requireParamName.d.ts +3 -0
  262. package/dist/rules/requireParamType.cjs +104 -0
  263. package/dist/rules/requireParamType.cjs.map +1 -0
  264. package/dist/rules/requireParamType.d.ts +3 -0
  265. package/dist/rules/requireProperty.cjs +63 -0
  266. package/dist/rules/requireProperty.cjs.map +1 -0
  267. package/dist/rules/requireProperty.d.ts +3 -0
  268. package/dist/rules/requirePropertyDescription.cjs +29 -0
  269. package/dist/rules/requirePropertyDescription.cjs.map +1 -0
  270. package/dist/rules/requirePropertyDescription.d.ts +3 -0
  271. package/dist/rules/requirePropertyName.cjs +29 -0
  272. package/dist/rules/requirePropertyName.cjs.map +1 -0
  273. package/dist/rules/requirePropertyName.d.ts +3 -0
  274. package/dist/rules/requirePropertyType.cjs +29 -0
  275. package/dist/rules/requirePropertyType.cjs.map +1 -0
  276. package/dist/rules/requirePropertyType.d.ts +3 -0
  277. package/dist/rules/requireRejects.cjs +226 -0
  278. package/dist/rules/requireRejects.cjs.map +1 -0
  279. package/dist/rules/requireRejects.d.ts +3 -0
  280. package/dist/rules/requireReturns.cjs +262 -0
  281. package/dist/rules/requireReturns.cjs.map +1 -0
  282. package/dist/rules/requireReturns.d.ts +3 -0
  283. package/dist/rules/requireReturnsCheck.cjs +140 -0
  284. package/dist/rules/requireReturnsCheck.cjs.map +1 -0
  285. package/dist/rules/requireReturnsCheck.d.ts +3 -0
  286. package/dist/rules/requireReturnsDescription.cjs +72 -0
  287. package/dist/rules/requireReturnsDescription.cjs.map +1 -0
  288. package/dist/rules/requireReturnsDescription.d.ts +3 -0
  289. package/dist/rules/requireReturnsType.cjs +68 -0
  290. package/dist/rules/requireReturnsType.cjs.map +1 -0
  291. package/dist/rules/requireReturnsType.d.ts +3 -0
  292. package/dist/rules/requireTags.cjs +74 -0
  293. package/dist/rules/requireTags.cjs.map +1 -0
  294. package/dist/rules/requireTags.d.ts +3 -0
  295. package/dist/rules/requireTemplate.cjs +220 -0
  296. package/dist/rules/requireTemplate.cjs.map +1 -0
  297. package/dist/rules/requireTemplate.d.ts +3 -0
  298. package/dist/rules/requireThrows.cjs +118 -0
  299. package/dist/rules/requireThrows.cjs.map +1 -0
  300. package/dist/rules/requireThrows.d.ts +3 -0
  301. package/dist/rules/requireYields.cjs +224 -0
  302. package/dist/rules/requireYields.cjs.map +1 -0
  303. package/dist/rules/requireYields.d.ts +3 -0
  304. package/dist/rules/requireYieldsCheck.cjs +179 -0
  305. package/dist/rules/requireYieldsCheck.cjs.map +1 -0
  306. package/dist/rules/requireYieldsCheck.d.ts +3 -0
  307. package/dist/rules/sortTags.cjs +656 -0
  308. package/dist/rules/sortTags.cjs.map +1 -0
  309. package/dist/rules/sortTags.d.ts +3 -0
  310. package/dist/rules/tagLines.cjs +374 -0
  311. package/dist/rules/tagLines.cjs.map +1 -0
  312. package/dist/rules/tagLines.d.ts +3 -0
  313. package/dist/rules/textEscaping.cjs +141 -0
  314. package/dist/rules/textEscaping.cjs.map +1 -0
  315. package/dist/rules/textEscaping.d.ts +3 -0
  316. package/dist/rules/tsMethodSignatureStyle.cjs +240 -0
  317. package/dist/rules/tsMethodSignatureStyle.cjs.map +1 -0
  318. package/dist/rules/tsMethodSignatureStyle.d.ts +3 -0
  319. package/dist/rules/tsNoEmptyObjectType.cjs +62 -0
  320. package/dist/rules/tsNoEmptyObjectType.cjs.map +1 -0
  321. package/dist/rules/tsNoEmptyObjectType.d.ts +3 -0
  322. package/dist/rules/tsNoUnnecessaryTemplateExpression.cjs +104 -0
  323. package/dist/rules/tsNoUnnecessaryTemplateExpression.cjs.map +1 -0
  324. package/dist/rules/tsNoUnnecessaryTemplateExpression.d.ts +3 -0
  325. package/dist/rules/tsPreferFunctionType.cjs +110 -0
  326. package/dist/rules/tsPreferFunctionType.cjs.map +1 -0
  327. package/dist/rules/tsPreferFunctionType.d.ts +3 -0
  328. package/dist/rules/typeFormatting.cjs +607 -0
  329. package/dist/rules/typeFormatting.cjs.map +1 -0
  330. package/dist/rules/typeFormatting.d.ts +3 -0
  331. package/dist/rules/validTypes.cjs +328 -0
  332. package/dist/rules/validTypes.cjs.map +1 -0
  333. package/dist/rules/validTypes.d.ts +3 -0
  334. package/dist/rules.d.ts +3203 -0
  335. package/dist/tagNames.cjs +244 -0
  336. package/dist/tagNames.cjs.map +1 -0
  337. package/dist/tagNames.d.ts +16 -0
  338. package/dist/to-valid-identifier.cjs +263 -0
  339. package/dist/utils/hasReturnValue.cjs +495 -0
  340. package/dist/utils/hasReturnValue.cjs.map +1 -0
  341. package/dist/utils/hasReturnValue.d.ts +20 -0
  342. package/package.json +220 -0
  343. package/rollup.config.js +16 -0
  344. package/src/WarnSettings.js +34 -0
  345. package/src/alignTransform.js +444 -0
  346. package/src/buildForbidRuleDefinition.js +106 -0
  347. package/src/buildRejectOrPreferRuleDefinition.js +481 -0
  348. package/src/defaultTagOrder.js +169 -0
  349. package/src/exportParser.js +973 -0
  350. package/src/getDefaultTagStructureForMode.js +968 -0
  351. package/src/getJsdocProcessorPlugin.cts +5 -0
  352. package/src/getJsdocProcessorPlugin.js +692 -0
  353. package/src/index-cjs.js +755 -0
  354. package/src/index-esm.js +196 -0
  355. package/src/index.cjs.cts +3 -0
  356. package/src/index.js +940 -0
  357. package/src/iterateJsdoc.cts +7 -0
  358. package/src/iterateJsdoc.js +2612 -0
  359. package/src/jsdocUtils.js +2158 -0
  360. package/src/rules/checkAccess.js +45 -0
  361. package/src/rules/checkAlignment.js +82 -0
  362. package/src/rules/checkExamples.js +613 -0
  363. package/src/rules/checkIndentation.js +176 -0
  364. package/src/rules/checkLineAlignment.js +453 -0
  365. package/src/rules/checkParamNames.js +541 -0
  366. package/src/rules/checkPropertyNames.js +174 -0
  367. package/src/rules/checkSyntax.js +30 -0
  368. package/src/rules/checkTagNames.js +414 -0
  369. package/src/rules/checkTemplateNames.js +208 -0
  370. package/src/rules/checkTypes.js +130 -0
  371. package/src/rules/checkValues.js +264 -0
  372. package/src/rules/convertToJsdocComments.js +444 -0
  373. package/src/rules/emptyTags.js +106 -0
  374. package/src/rules/escapeInlineTags.js +189 -0
  375. package/src/rules/implementsOnClasses.js +78 -0
  376. package/src/rules/importsAsDependencies.js +132 -0
  377. package/src/rules/informativeDocs.js +228 -0
  378. package/src/rules/linesBeforeBlock.js +144 -0
  379. package/src/rules/matchDescription.js +413 -0
  380. package/src/rules/matchName.js +179 -0
  381. package/src/rules/multilineBlocks.js +562 -0
  382. package/src/rules/noBadBlocks.js +127 -0
  383. package/src/rules/noBlankBlockDescriptions.js +69 -0
  384. package/src/rules/noBlankBlocks.js +55 -0
  385. package/src/rules/noDefaults.js +104 -0
  386. package/src/rules/noMissingSyntax.js +215 -0
  387. package/src/rules/noMultiAsterisks.js +162 -0
  388. package/src/rules/noRestrictedSyntax.js +72 -0
  389. package/src/rules/noTypes.js +108 -0
  390. package/src/rules/noUndefinedTypes.js +797 -0
  391. package/src/rules/preferImportTag.js +521 -0
  392. package/src/rules/requireAsteriskPrefix.js +217 -0
  393. package/src/rules/requireDescription.js +190 -0
  394. package/src/rules/requireDescriptionCompleteSentence.js +376 -0
  395. package/src/rules/requireExample.js +143 -0
  396. package/src/rules/requireFileOverview.js +213 -0
  397. package/src/rules/requireHyphenBeforeParamDescription.js +210 -0
  398. package/src/rules/requireJsdoc.js +897 -0
  399. package/src/rules/requireParam.js +848 -0
  400. package/src/rules/requireParamDescription.js +110 -0
  401. package/src/rules/requireParamName.js +69 -0
  402. package/src/rules/requireParamType.js +109 -0
  403. package/src/rules/requireProperty.js +66 -0
  404. package/src/rules/requirePropertyDescription.js +25 -0
  405. package/src/rules/requirePropertyName.js +25 -0
  406. package/src/rules/requirePropertyType.js +25 -0
  407. package/src/rules/requireRejects.js +246 -0
  408. package/src/rules/requireReturns.js +291 -0
  409. package/src/rules/requireReturnsCheck.js +180 -0
  410. package/src/rules/requireReturnsDescription.js +73 -0
  411. package/src/rules/requireReturnsType.js +65 -0
  412. package/src/rules/requireTags.js +85 -0
  413. package/src/rules/requireTemplate.js +246 -0
  414. package/src/rules/requireThrows.js +128 -0
  415. package/src/rules/requireYields.js +265 -0
  416. package/src/rules/requireYieldsCheck.js +226 -0
  417. package/src/rules/sortTags.js +766 -0
  418. package/src/rules/tagLines.js +486 -0
  419. package/src/rules/textEscaping.js +158 -0
  420. package/src/rules/tsMethodSignatureStyle.js +300 -0
  421. package/src/rules/tsNoEmptyObjectType.js +61 -0
  422. package/src/rules/tsNoUnnecessaryTemplateExpression.js +130 -0
  423. package/src/rules/tsPreferFunctionType.js +127 -0
  424. package/src/rules/typeFormatting.js +690 -0
  425. package/src/rules/validTypes.js +466 -0
  426. package/src/rules.d.ts +3203 -0
  427. package/src/tagNames.js +301 -0
  428. package/src/utils/hasReturnValue.js +572 -0
  429. package/typings/babel__eslint-parser.d.ts +1 -0
  430. package/typings/gitdown.d.ts +16 -0
@@ -0,0 +1,656 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _defaultTagOrder = _interopRequireDefault(require("../defaultTagOrder.cjs"));
8
+ var _iterateJsdoc = _interopRequireDefault(require("../iterateJsdoc.cjs"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ var _default = exports.default = (0, _iterateJsdoc.default)(({
11
+ context,
12
+ jsdoc,
13
+ utils
14
+ // eslint-disable-next-line complexity -- Temporary
15
+ }) => {
16
+ const
17
+ /**
18
+ * @type {{
19
+ * linesBetween: import('../iterateJsdoc.js').Integer,
20
+ * tagExceptions: Record<string, number>,
21
+ * tagSequence: {
22
+ * tags: string[]
23
+ * }[],
24
+ * alphabetizeExtras: boolean,
25
+ * reportTagGroupSpacing: boolean,
26
+ * reportIntraTagGroupSpacing: boolean,
27
+ * }}
28
+ */
29
+ {
30
+ alphabetizeExtras = false,
31
+ linesBetween = 1,
32
+ reportIntraTagGroupSpacing = true,
33
+ reportTagGroupSpacing = true,
34
+ tagExceptions = {},
35
+ tagSequence = _defaultTagOrder.default
36
+ } = context.options[0] || {};
37
+ const tagList = tagSequence.flatMap(obj => {
38
+ /* typeof obj === 'string' ? obj : */
39
+ return obj.tags;
40
+ });
41
+ const otherPos = tagList.indexOf('-other');
42
+ const endPos = otherPos > -1 ? otherPos : tagList.length;
43
+ let ongoingCount = 0;
44
+ for (const [idx, tag] of
45
+ /**
46
+ * @type {(
47
+ * import('@es-joy/jsdoccomment').JsdocTagWithInline & {
48
+ * originalIndex: import('../iterateJsdoc.js').Integer,
49
+ * originalLine: import('../iterateJsdoc.js').Integer,
50
+ * }
51
+ * )[]}
52
+ */
53
+ jsdoc.tags.entries()) {
54
+ tag.originalIndex = idx;
55
+ ongoingCount += tag.source.length;
56
+ tag.originalLine = ongoingCount;
57
+ }
58
+
59
+ /** @type {import('../iterateJsdoc.js').Integer|undefined} */
60
+ let firstChangedTagLine;
61
+ /** @type {import('../iterateJsdoc.js').Integer|undefined} */
62
+ let firstChangedTagIndex;
63
+
64
+ /**
65
+ * @type {(import('comment-parser').Spec & {
66
+ * originalIndex: import('../iterateJsdoc.js').Integer,
67
+ * originalLine: import('../iterateJsdoc.js').Integer,
68
+ * })[]}
69
+ */
70
+ const sortedTags = JSON.parse(JSON.stringify(jsdoc.tags));
71
+ sortedTags.sort(({
72
+ tag: tagNew
73
+ }, {
74
+ originalIndex,
75
+ originalLine,
76
+ tag: tagOld
77
+ }) => {
78
+ // Optimize: Just keep relative positions if the same tag name
79
+ if (tagNew === tagOld) {
80
+ return 0;
81
+ }
82
+ const checkOrSetFirstChanged = () => {
83
+ if (!firstChangedTagLine || originalLine < firstChangedTagLine) {
84
+ firstChangedTagLine = originalLine;
85
+ firstChangedTagIndex = originalIndex;
86
+ }
87
+ };
88
+ const newPos = tagList.indexOf(tagNew);
89
+ const oldPos = tagList.indexOf(tagOld);
90
+ const preferredNewPos = newPos === -1 ? endPos : newPos;
91
+ const preferredOldPos = oldPos === -1 ? endPos : oldPos;
92
+ if (preferredNewPos < preferredOldPos) {
93
+ checkOrSetFirstChanged();
94
+ return -1;
95
+ }
96
+ if (preferredNewPos > preferredOldPos) {
97
+ return 1;
98
+ }
99
+
100
+ // preferredNewPos === preferredOldPos
101
+ if (!alphabetizeExtras ||
102
+ // Optimize: If tagNew (or tagOld which is the same) was found in the
103
+ // priority array, it can maintain its relative position—without need
104
+ // of alphabetizing (secondary sorting)
105
+ newPos >= 0) {
106
+ return 0;
107
+ }
108
+ if (tagNew < tagOld) {
109
+ checkOrSetFirstChanged();
110
+ return -1;
111
+ }
112
+
113
+ // tagNew > tagOld
114
+ return 1;
115
+ });
116
+ if (firstChangedTagLine === undefined) {
117
+ // Should be ordered by now
118
+
119
+ /**
120
+ * @type {import('comment-parser').Spec[]}
121
+ */
122
+ const lastTagsOfGroup = [];
123
+
124
+ /**
125
+ * @type {[
126
+ * import('comment-parser').Spec,
127
+ * import('../iterateJsdoc.js').Integer
128
+ * ][]}
129
+ */
130
+ const badLastTagsOfGroup = [];
131
+
132
+ /**
133
+ * @param {import('comment-parser').Spec} tag
134
+ */
135
+ const countTagEmptyLines = tag => {
136
+ return tag.source.reduce((acc, {
137
+ tokens: {
138
+ description,
139
+ end,
140
+ name,
141
+ tag: tg,
142
+ type
143
+ }
144
+ }) => {
145
+ const empty = !tg && !type && !name && !description;
146
+ // Reset the count so long as there is content
147
+ return empty ? acc + Number(empty && !end) : 0;
148
+ }, 0);
149
+ };
150
+ let idx = 0;
151
+ for (const {
152
+ tags
153
+ } of tagSequence) {
154
+ let innerIdx;
155
+ /** @type {import('comment-parser').Spec} */
156
+ let currentTag;
157
+ /** @type {import('comment-parser').Spec|undefined} */
158
+ let lastTag;
159
+ do {
160
+ currentTag = jsdoc.tags[idx];
161
+ if (!currentTag) {
162
+ idx++;
163
+ break;
164
+ }
165
+ innerIdx = tags.indexOf(currentTag.tag);
166
+ if (innerIdx === -1 && (
167
+ // eslint-disable-next-line no-loop-func -- Safe
168
+ !tags.includes('-other') || tagSequence.some(({
169
+ tags: tgs
170
+ }) => {
171
+ return tgs.includes(currentTag.tag);
172
+ }))) {
173
+ idx++;
174
+ break;
175
+ }
176
+ lastTag = currentTag;
177
+ idx++;
178
+ } while (true);
179
+ idx--;
180
+ if (lastTag) {
181
+ lastTagsOfGroup.push(lastTag);
182
+ const ct = countTagEmptyLines(lastTag);
183
+ if (ct !== linesBetween &&
184
+ // Use another rule for adding to end (should be of interest outside this rule)
185
+ jsdoc.tags[idx]) {
186
+ badLastTagsOfGroup.push([lastTag, ct]);
187
+ }
188
+ }
189
+ }
190
+ if (reportTagGroupSpacing && badLastTagsOfGroup.length) {
191
+ /**
192
+ * @param {import('comment-parser').Spec} tg
193
+ * @returns {() => void}
194
+ */
195
+ const fixer = tg => {
196
+ return () => {
197
+ // Due to https://github.com/syavorsky/comment-parser/issues/110 ,
198
+ // we have to modify `jsdoc.source` rather than just modify tags
199
+ // directly
200
+ for (const [currIdx, {
201
+ tokens
202
+ }] of jsdoc.source.entries()) {
203
+ if (tokens.tag !== '@' + tg.tag) {
204
+ continue;
205
+ }
206
+
207
+ // Cannot be `tokens.end`, as dropped off last tag, so safe to
208
+ // go on
209
+ let newIdx = currIdx;
210
+ const emptyLine = () => {
211
+ return {
212
+ number: 0,
213
+ source: '',
214
+ tokens: utils.seedTokens({
215
+ delimiter: '*',
216
+ start: jsdoc.source[newIdx - 1].tokens.start
217
+ })
218
+ };
219
+ };
220
+ let existingEmptyLines = 0;
221
+ while (true) {
222
+ const nextTokens = jsdoc.source[++newIdx]?.tokens;
223
+
224
+ /* c8 ignore next 3 -- Guard */
225
+ if (!nextTokens) {
226
+ return;
227
+ }
228
+
229
+ // Should be no `nextTokens.end` to worry about since ignored
230
+ // if not followed by tag
231
+
232
+ if (nextTokens.tag) {
233
+ // Haven't made it to last tag instance yet, so keep looking
234
+ if (nextTokens.tag === tokens.tag) {
235
+ existingEmptyLines = 0;
236
+ continue;
237
+ }
238
+ const lineDiff = linesBetween - existingEmptyLines;
239
+ if (lineDiff > 0) {
240
+ const lines = Array.from({
241
+ length: lineDiff
242
+ }, () => {
243
+ return emptyLine();
244
+ });
245
+ jsdoc.source.splice(newIdx, 0, ...lines);
246
+ } else {
247
+ // lineDiff < 0
248
+ jsdoc.source.splice(newIdx + lineDiff, -lineDiff);
249
+ }
250
+ break;
251
+ }
252
+ const empty = !nextTokens.type && !nextTokens.name && !nextTokens.description;
253
+ if (empty) {
254
+ existingEmptyLines++;
255
+ } else {
256
+ // Has content again, so reset empty line count
257
+ existingEmptyLines = 0;
258
+ }
259
+ }
260
+ break;
261
+ }
262
+ for (const [srcIdx, src] of jsdoc.source.entries()) {
263
+ src.number = srcIdx;
264
+ }
265
+ };
266
+ };
267
+ for (const [tg] of badLastTagsOfGroup) {
268
+ utils.reportJSDoc('Tag groups do not have the expected whitespace', tg, fixer(tg));
269
+ }
270
+ return;
271
+ }
272
+ if (!reportIntraTagGroupSpacing) {
273
+ return;
274
+ }
275
+ for (const [tagIdx, tag] of jsdoc.tags.entries()) {
276
+ if (!jsdoc.tags[tagIdx + 1] || lastTagsOfGroup.includes(tag)) {
277
+ continue;
278
+ }
279
+ const ct = countTagEmptyLines(tag);
280
+ if (ct && (!tagExceptions[tag.tag] || tagExceptions[tag.tag] < ct)) {
281
+ const fixer = () => {
282
+ let foundFirstTag = false;
283
+
284
+ /** @type {string|undefined} */
285
+ let currentTag;
286
+ for (const [currIdx, {
287
+ tokens: {
288
+ description,
289
+ end,
290
+ name,
291
+ tag: tg,
292
+ type
293
+ }
294
+ }] of jsdoc.source.entries()) {
295
+ if (tg) {
296
+ foundFirstTag = true;
297
+ currentTag = tg;
298
+ }
299
+ if (!foundFirstTag) {
300
+ continue;
301
+ }
302
+ if (currentTag && !tg && !type && !name && !description && !end) {
303
+ let nextIdx = currIdx;
304
+ let ignore = true;
305
+ // Even if a tag of the same name as the last tags in a group,
306
+ // could still be an earlier tag in that group
307
+
308
+ // eslint-disable-next-line no-loop-func -- Safe
309
+ if (lastTagsOfGroup.some(lastTagOfGroup => {
310
+ return currentTag === '@' + lastTagOfGroup.tag;
311
+ })) {
312
+ while (true) {
313
+ const nextTokens = jsdoc.source[++nextIdx]?.tokens;
314
+ if (!nextTokens) {
315
+ break;
316
+ }
317
+ if (!nextTokens.tag) {
318
+ continue;
319
+ }
320
+
321
+ // Followed by the same tag name, so not actually last in group,
322
+ // and of interest
323
+ if (nextTokens.tag === currentTag) {
324
+ ignore = false;
325
+ }
326
+ }
327
+ } else {
328
+ while (true) {
329
+ const nextTokens = jsdoc.source[++nextIdx]?.tokens;
330
+ if (!nextTokens || nextTokens.end) {
331
+ break;
332
+ }
333
+
334
+ // Not the very last tag, so don't ignore
335
+ if (nextTokens.tag) {
336
+ ignore = false;
337
+ break;
338
+ }
339
+ }
340
+ }
341
+ if (!ignore) {
342
+ jsdoc.source.splice(currIdx, 1);
343
+ for (const [srcIdx, src] of jsdoc.source.entries()) {
344
+ src.number = srcIdx;
345
+ }
346
+ }
347
+ }
348
+ }
349
+ };
350
+ utils.reportJSDoc('Intra-group tags have unexpected whitespace', tag, fixer);
351
+ }
352
+ }
353
+ return;
354
+ }
355
+ const firstLine = utils.getFirstLine();
356
+ const fix = () => {
357
+ const itemsToMoveRange = [...Array.from({
358
+ length: jsdoc.tags.length - (/** @type {import('../iterateJsdoc.js').Integer} */
359
+ firstChangedTagIndex)
360
+ }).keys()];
361
+ const unchangedPriorTagDescriptions = jsdoc.tags.slice(0, firstChangedTagIndex).reduce((ct, {
362
+ source
363
+ }) => {
364
+ return ct + source.length - 1;
365
+ }, 0);
366
+
367
+ // This offset includes not only the offset from where the first tag
368
+ // must begin, and the additional offset of where the first changed
369
+ // tag begins, but it must also account for prior descriptions
370
+ const initialOffset = /** @type {import('../iterateJsdoc.js').Integer} */firstLine + (/** @type {import('../iterateJsdoc.js').Integer} */firstChangedTagIndex) +
371
+ // May be the first tag, so don't try finding a prior one if so
372
+ unchangedPriorTagDescriptions;
373
+
374
+ // Use `firstChangedTagLine` for line number to begin reporting/splicing
375
+ for (const idx of itemsToMoveRange) {
376
+ utils.removeTag(idx + (/** @type {import('../iterateJsdoc.js').Integer} */
377
+ firstChangedTagIndex));
378
+ }
379
+ const changedTags = sortedTags.slice(firstChangedTagIndex);
380
+ let extraTagCount = 0;
381
+ for (const idx of itemsToMoveRange) {
382
+ const changedTag = changedTags[idx];
383
+ utils.addTag(changedTag.tag, extraTagCount + initialOffset + idx, {
384
+ ...changedTag.source[0].tokens,
385
+ // `comment-parser` puts the `end` within the `tags` section, so
386
+ // avoid adding another to jsdoc.source
387
+ end: ''
388
+ });
389
+ for (const {
390
+ tokens
391
+ } of changedTag.source.slice(1)) {
392
+ if (!tokens.end) {
393
+ utils.addLine(extraTagCount + initialOffset + idx + 1, {
394
+ ...tokens,
395
+ end: ''
396
+ });
397
+ extraTagCount++;
398
+ }
399
+ }
400
+ }
401
+ };
402
+ utils.reportJSDoc(`Tags are not in the prescribed order: ${tagList.join(', ') || '(alphabetical)'}`, jsdoc.tags[(/** @type {import('../iterateJsdoc.js').Integer} */
403
+ firstChangedTagIndex)], fix, true);
404
+ }, {
405
+ iterateAllJsdocs: true,
406
+ meta: {
407
+ docs: {
408
+ description: 'Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.',
409
+ url: 'https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/sort-tags.md#repos-sticky-header'
410
+ },
411
+ fixable: 'code',
412
+ schema: [{
413
+ additionalProperties: false,
414
+ properties: {
415
+ alphabetizeExtras: {
416
+ description: `Defaults to \`false\`. Alphabetizes any items not within \`tagSequence\` after any
417
+ items within \`tagSequence\` (or in place of the special \`-other\` pseudo-tag)
418
+ are sorted.
419
+
420
+ If you want all your tags alphabetized, you can supply an empty array for
421
+ \`tagSequence\` along with setting this option to \`true\`.`,
422
+ type: 'boolean'
423
+ },
424
+ linesBetween: {
425
+ description: `Indicates the number of lines to be added between tag groups. Defaults to 1.
426
+ Do not set to 0 or 2+ if you are using \`tag-lines\` and \`"always"\` and do not
427
+ set to 1+ if you are using \`tag-lines\` and \`"never"\`.`,
428
+ type: 'integer'
429
+ },
430
+ reportIntraTagGroupSpacing: {
431
+ description: `Whether to enable reporting and fixing of line breaks within tags of a given
432
+ tag group. Defaults to \`true\` which will remove any line breaks at the end of
433
+ such tags. Do not use with \`true\` if you are using \`tag-lines\` and \`always\`.`,
434
+ type: 'boolean'
435
+ },
436
+ reportTagGroupSpacing: {
437
+ description: `Whether to enable reporting and fixing of line breaks between tag groups
438
+ as set by \`linesBetween\`. Defaults to \`true\`. Note that the very last tag
439
+ will not have spacing applied regardless. For adding line breaks there, you
440
+ may wish to use the \`endLines\` option of the \`tag-lines\` rule.`,
441
+ type: 'boolean'
442
+ },
443
+ tagExceptions: {
444
+ description: 'Allows specification by tag of a specific higher maximum number of lines. Keys are tags and values are the maximum number of lines allowed for such tags. Overrides `linesBetween`. Defaults to no special exceptions per tag.',
445
+ patternProperties: {
446
+ '.*': {
447
+ type: 'number'
448
+ }
449
+ },
450
+ type: 'object'
451
+ },
452
+ tagSequence: {
453
+ description: `An array of tag group objects indicating the preferred sequence for sorting tags.
454
+
455
+ Each item in the array should be an object with a \`tags\` property set to an array
456
+ of tag names.
457
+
458
+ Tag names earlier in the list will be arranged first. The relative position of
459
+ tags of the same name will not be changed.
460
+
461
+ Earlier groups will also be arranged before later groups, but with the added
462
+ feature that additional line breaks may be added between (or before or after)
463
+ such groups (depending on the setting of \`linesBetween\`).
464
+
465
+ Tag names not in the list will be grouped together at the end. The pseudo-tag
466
+ \`-other\` can be used to place them anywhere else if desired. The tags will be
467
+ placed in their order of appearance, or alphabetized if \`alphabetizeExtras\`
468
+ is enabled, see more below about that option.
469
+
470
+ Defaults to the array below (noting that it is just a single tag group with
471
+ no lines between groups by default).
472
+
473
+ Please note that this order is still experimental, so if you want to retain
474
+ a fixed order that doesn't change into the future, supply your own
475
+ \`tagSequence\`.
476
+
477
+ \`\`\`js
478
+ [{tags: [
479
+ // Brief descriptions
480
+ 'summary',
481
+ 'typeSummary',
482
+
483
+ // Module/file-level
484
+ 'module',
485
+ 'exports',
486
+ 'file',
487
+ 'fileoverview',
488
+ 'overview',
489
+ 'import',
490
+
491
+ // Identifying (name, type)
492
+ 'typedef',
493
+ 'interface',
494
+ 'record',
495
+ 'template',
496
+ 'name',
497
+ 'kind',
498
+ 'type',
499
+ 'alias',
500
+ 'external',
501
+ 'host',
502
+ 'callback',
503
+ 'func',
504
+ 'function',
505
+ 'method',
506
+ 'class',
507
+ 'constructor',
508
+
509
+ // Relationships
510
+ 'modifies',
511
+ 'mixes',
512
+ 'mixin',
513
+ 'mixinClass',
514
+ 'mixinFunction',
515
+ 'namespace',
516
+ 'borrows',
517
+ 'constructs',
518
+ 'lends',
519
+ 'implements',
520
+ 'requires',
521
+
522
+ // Long descriptions
523
+ 'desc',
524
+ 'description',
525
+ 'classdesc',
526
+ 'tutorial',
527
+ 'copyright',
528
+ 'license',
529
+
530
+ // Simple annotations
531
+ 'const',
532
+ 'constant',
533
+ 'final',
534
+ 'global',
535
+ 'readonly',
536
+ 'abstract',
537
+ 'virtual',
538
+ 'var',
539
+ 'member',
540
+ 'memberof',
541
+ 'memberof!',
542
+ 'inner',
543
+ 'instance',
544
+ 'inheritdoc',
545
+ 'inheritDoc',
546
+ 'override',
547
+ 'hideconstructor',
548
+
549
+ // Core function/object info
550
+ 'param',
551
+ 'arg',
552
+ 'argument',
553
+ 'prop',
554
+ 'property',
555
+ 'return',
556
+ 'returns',
557
+
558
+ // Important behavior details
559
+ 'async',
560
+ 'generator',
561
+ 'default',
562
+ 'defaultvalue',
563
+ 'enum',
564
+ 'augments',
565
+ 'extends',
566
+ 'throws',
567
+ 'exception',
568
+ 'yield',
569
+ 'yields',
570
+ 'event',
571
+ 'fires',
572
+ 'emits',
573
+ 'listens',
574
+ 'this',
575
+
576
+ // Access
577
+ 'static',
578
+ 'private',
579
+ 'protected',
580
+ 'public',
581
+ 'access',
582
+ 'package',
583
+
584
+ '-other',
585
+
586
+ // Supplementary descriptions
587
+ 'see',
588
+ 'example',
589
+
590
+ // METADATA
591
+
592
+ // Other Closure (undocumented) metadata
593
+ 'closurePrimitive',
594
+ 'customElement',
595
+ 'expose',
596
+ 'hidden',
597
+ 'idGenerator',
598
+ 'meaning',
599
+ 'ngInject',
600
+ 'owner',
601
+ 'wizaction',
602
+
603
+ // Other Closure (documented) metadata
604
+ 'define',
605
+ 'dict',
606
+ 'export',
607
+ 'externs',
608
+ 'implicitCast',
609
+ 'noalias',
610
+ 'nocollapse',
611
+ 'nocompile',
612
+ 'noinline',
613
+ 'nosideeffects',
614
+ 'polymer',
615
+ 'polymerBehavior',
616
+ 'preserve',
617
+ 'struct',
618
+ 'suppress',
619
+ 'unrestricted',
620
+
621
+ // @homer0/prettier-plugin-jsdoc metadata
622
+ 'category',
623
+
624
+ // Non-Closure metadata
625
+ 'ignore',
626
+ 'author',
627
+ 'version',
628
+ 'variation',
629
+ 'since',
630
+ 'deprecated',
631
+ 'todo',
632
+ ]}];
633
+ \`\`\``,
634
+ items: {
635
+ additionalProperties: false,
636
+ properties: {
637
+ tags: {
638
+ description: 'See description on `tagSequence`.',
639
+ items: {
640
+ type: 'string'
641
+ },
642
+ type: 'array'
643
+ }
644
+ },
645
+ type: 'object'
646
+ },
647
+ type: 'array'
648
+ }
649
+ },
650
+ type: 'object'
651
+ }],
652
+ type: 'suggestion'
653
+ }
654
+ });
655
+ module.exports = exports.default;
656
+ //# sourceMappingURL=sortTags.cjs.map