-
-
Notifications
You must be signed in to change notification settings - Fork 169
Description
If you weren't aware, ESLint has end-of-lifed their jsdoc support: https://eslint.org/blog/2018/11/jsdoc-end-of-life (and are recommending eslint-plugin-jsdoc as a replacement).
Besides this it would be very nice to incorporate the functionality of See https://github.com/gajus/eslint-plugin-jsdoc/wiki/Comparison-with-deprecated-JSdoc-related-ESLint-rules for already existing equivalents or near-equivalents and below for the remaining.require-jsdoc andvalid-jsdoc which are not part of eslint-plugin-jsdoc and document how to transition...
For Mergedrequire-jsdoc, see #162. (original source and tests)
For our need to deal with the deprecation of MergedsourceCode.getJSDocComment, see #189.
We have no equivalents yet for the following behaviors:
- -
v4.8.1require-returns- "@constructortag allows missing@returnstag" - -
v4.8.1require-returns- "class constructor allows missing@returnstag" - -
v4.8.1require-returns- "@overridetag allows missing ...@returnstags"
We have no equally powerful/granular replacements for the following options:
- -
matchDescriptionoption:require-description-complete-sentenceandnewline-after-descriptioncan handle subsets of this, butmatchDescriptionis more flexible and powerful. - -
Reviewvalid-jsdocsource for any discrepancies or missing subfeatures with existing equivalent behaviors (require-jsdochas already been reimplemented); this should also assist in closing Document how eslint-plugin-jsdoc is different from valid-jsdoc #1 ; current PRs should handle all behavior differences. - -
preferTypeoption:check-typesis only able to enforce one specific set of types, rather than arbitrary remapping of preferred types (I've suggested at How to disallow '*' type? #166 that we also allow the values to befalseto indicate there is no preferred replacement--just a blanket prohibition of that type.) Update wiki mentions ofpreferTypewhen done