-
-
Notifications
You must be signed in to change notification settings - Fork 163
Incorporating now deprecated valid-jsdoc
ESLint jsdoc rules and options which we do not already support
#107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FWIW, I also had filed this issue related to improving the support they had:
|
Is there a mapping for whatever ESLint's jsdoc did to whatever of your plugin rules would apply? |
I am not aware of any, but you could take a look at the two ESLint rules which they are planning to remove and compare with the plugin's: Note that while there are only two rules, there are a good number of options for the latter. I have been using eslint-plugin-jsdoc and these rules both in my config as each does some things the other does not. |
Not 100% related, but maybe it will be beneficial to write a document (or a segment in the README) explaining how to transition from the built-in ESLint rules to the plugin? |
I've updated my original comment just now to also request documenting of this... |
It'd be really nice to have a require-jsdoc equivalent. |
#162 relates to this issue |
valid-jsdoc
ESLint jsdoc rules and options which we do not already support
I've updated this issue to focus exclusively on |
I've also moved mention of our need to replace reliance on ESLint's And I've started a wiki page at https://github.com/gajus/eslint-plugin-jsdoc/wiki/Comparison-with-deprecated-JSdoc-related-ESLint-rules to try to map any existing equivalents or tracking issues for planned future equivalents for the various dimensions and options of the deprecated |
Ok, the wiki pages should now be complete, and I've revised my original comment in this issue to summarize the 5 capabilities remaining from ESLint which are not available at the moment in |
Regarding the |
🎉 This issue has been resolved in version 6.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 ofSee 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...ForMergedrequire-jsdoc
, see #162. (original source and tests)For our need to deal with the deprecation ofMergedsourceCode.getJSDocComment
, see #189.We have no equivalents yet for the following behaviors:v4.8.1require-returns
- "@constructor
tag allows missing@returns
tag"v4.8.1require-returns
- "class constructor allows missing@returns
tag"v4.8.1require-returns
- "@override
tag allows missing ...@returns
tags"We have no equally powerful/granular replacements for the following options:
matchDescription
option:require-description-complete-sentence
andnewline-after-description
can handle subsets of this, butmatchDescription
is more flexible and powerful.Reviewvalid-jsdoc
source for any discrepancies or missing subfeatures with existing equivalent behaviors (require-jsdoc
has 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.preferType
option:check-types
is 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 befalse
to indicate there is no preferred replacement--just a blanket prohibition of that type.) Update wiki mentions ofpreferType
when doneThe text was updated successfully, but these errors were encountered: