Skip to content

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

Closed
6 tasks done
brettz9 opened this issue Nov 28, 2018 · 12 comments · Fixed by #247
Closed
6 tasks done

Comments

@brettz9
Copy link
Collaborator

brettz9 commented Nov 28, 2018

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 require-jsdoc and valid-jsdoc which are not part of eslint-plugin-jsdoc and document how to transition... 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.

For require-jsdoc, see #162. (original source and tests) Merged

For our need to deal with the deprecation of sourceCode.getJSDocComment, see #189. Merged

We have no equivalents yet for the following behaviors:

We have no equally powerful/granular replacements for the following options:

@brettz9
Copy link
Collaborator Author

brettz9 commented Nov 28, 2018

FWIW, I also had filed this issue related to improving the support they had:

@plroebuck
Copy link

Is there a mapping for whatever ESLint's jsdoc did to whatever of your plugin rules would apply?

@brettz9
Copy link
Collaborator Author

brettz9 commented Nov 29, 2018

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.

@bary12
Copy link
Contributor

bary12 commented Dec 3, 2018

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?

@brettz9
Copy link
Collaborator Author

brettz9 commented Dec 3, 2018

I've updated my original comment just now to also request documenting of this...

@ThosRTanner
Copy link

It'd be really nice to have a require-jsdoc equivalent.

@thsmi
Copy link
Contributor

thsmi commented Apr 4, 2019

#162 relates to this issue

@brettz9 brettz9 changed the title Incorporating now deprecated ESLint jsdoc features Incorporating now deprecated valid-jsdoc ESLint jsdoc rules and options which we do not already support Apr 7, 2019
@brettz9
Copy link
Collaborator Author

brettz9 commented Apr 7, 2019

I've updated this issue to focus exclusively on valid-jsdoc and implementing those aspects/options which we don't already support. Tracking for require-jsdoc as mentioned is in #162

@brettz9
Copy link
Collaborator Author

brettz9 commented Apr 7, 2019

I've also moved mention of our need to replace reliance on ESLint's SourceCode#getJSDocComment over to #189.

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 valid-jsdoc feature (though up to this moment, I've mostly just set up the tables and haven't listed existing equivalents yet).

@brettz9
Copy link
Collaborator Author

brettz9 commented Apr 7, 2019

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 eslint-plugin-jsdoc (3 of which relate to require-returns behavior).

@brettz9 brettz9 mentioned this issue Apr 7, 2019
@brettz9
Copy link
Collaborator Author

brettz9 commented Apr 8, 2019

Regarding the matchDescription regex string setting allowed by valid-jsdoc, @gajus , where would you suggest putting an equivalent? As a setting accessible to require-description-complete-sentence which would override its behavior or a new rule with an option (or with a setting)?

brettz9 added a commit to brettz9/eslint-plugin-jsdoc that referenced this issue May 15, 2019
brettz9 added a commit to brettz9/eslint-plugin-jsdoc that referenced this issue May 15, 2019
brettz9 added a commit to brettz9/eslint-plugin-jsdoc that referenced this issue May 15, 2019
brettz9 added a commit to brettz9/eslint-plugin-jsdoc that referenced this issue May 15, 2019
brettz9 added a commit to brettz9/eslint-plugin-jsdoc that referenced this issue May 15, 2019
brettz9 added a commit to brettz9/eslint-plugin-jsdoc that referenced this issue May 15, 2019
brettz9 added a commit to brettz9/eslint-plugin-jsdoc that referenced this issue May 16, 2019
brettz9 added a commit that referenced this issue May 16, 2019
@gajus
Copy link
Owner

gajus commented May 21, 2019

🎉 This issue has been resolved in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants