-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
lib,test,tools: use consistent JSDoc types #40989
Conversation
This could be in preparation of implementing the jsdoc/check-types ESLint rule.
This is the result of installing and enabling |
(If it's possible to install and use only |
I think we should change all of the |
|
Yep, didn't mean to explain it that way; updated the comment. |
In our docs we are using |
I think this requires a larger discussion. If we're going to use JSDoc, let's use JSDoc and use it to generate information in our docs. If we've just got some JSDoc comments here and there but they aren't actually serving a purpose, let's remove them. Otherwise, we have to keep information in two places, but only for some APIs, and there's probably no obvious reason for which APIs that would be. |
I disagree, they are useful for core developers to get useful autocomplete features from their code editor. That being said I agree it would be better to use it to generate the docs, but I don’t think we should remove it if we can’t. |
Ah, OK, if that's the primary purpose at the current time, then sure, let's keep them. I'm not concerned about using |
If #40995 lands, then adding eslint-plugin-jsdoc will add "only" 93K lines, although over 20K of those lines would be the eslint-plugin-jsdoc README file. |
Commit Queue failed- Loading data for nodejs/node/pull/40989 ✔ Done loading data for nodejs/node/pull/40989 ----------------------------------- PR info ------------------------------------ Title lib,test,tools: use consistent JSDoc types (#40989) Author Rich Trott (@Trott) Branch Trott:jsdoc-fix -> nodejs:master Labels lib / src, author ready, needs-ci Commits 1 - lib,test,tools: use consistent JSDoc types Committers 1 - Rich Trott PR-URL: https://github.com/nodejs/node/pull/40989 Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel Reviewed-By: Tobias Nießen Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Ruben Bridgewater ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/40989 Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel Reviewed-By: Tobias Nießen Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Ruben Bridgewater -------------------------------------------------------------------------------- ℹ This PR was created on Sat, 27 Nov 2021 00:19:42 GMT ✔ Approvals: 6 ✔ - Michaël Zasso (@targos) (TSC): https://github.com/nodejs/node/pull/40989#pullrequestreview-817141936 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/40989#pullrequestreview-817156177 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/40989#pullrequestreview-817158923 ✔ - Tobias Nießen (@tniessen) (TSC): https://github.com/nodejs/node/pull/40989#pullrequestreview-817168406 ✔ - Mohammed Keyvanzadeh (@VoltrexMaster): https://github.com/nodejs/node/pull/40989#pullrequestreview-817189140 ✔ - Ruben Bridgewater (@BridgeAR) (TSC): https://github.com/nodejs/node/pull/40989#pullrequestreview-817207135 ✔ Last GitHub Actions successful ✖ No Jenkins CI runs detected -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/1514030857 |
Landed in 1e8b296 |
This could be in preparation of implementing the jsdoc/check-types ESLint rule. PR-URL: #40989 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This could be in preparation of implementing the jsdoc/check-types ESLint rule. PR-URL: #40989 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This could be in preparation of implementing the jsdoc/check-types ESLint rule. PR-URL: #40989 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This could be in preparation of implementing the jsdoc/check-types ESLint rule. PR-URL: #40989 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This could be in preparation of implementing the jsdoc/check-types
ESLint rule.