-
Notifications
You must be signed in to change notification settings - Fork 29
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
Jsdoc #82
Jsdoc #82
Conversation
Codecov Report
@@ Coverage Diff @@
## master #82 +/- ##
==========================================
- Coverage 98.52% 98.51% -0.01%
==========================================
Files 17 17
Lines 473 472 -1
==========================================
- Hits 466 465 -1
Misses 7 7
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This PR is, an exploration of how we might go about solving sinonjs/sinon#2003
Purpose (TL;DR)
Cover all of the public methods, and most of the internals (not anonymous functions) with JSDoc comments.
This allows us to generate API documentation, as requested in sinonjs/sinon#2003 and will also allow us to publish API documentation as suggested in sinonjs/sinon#1651.
It will also allow users of advanced IDEs to use the JSDoc for autocompletion and type checking. See Type Safe JavaScript with JSDoc
Solution
jsdoc
to generate documentation siteeslint-plugin-jsdoc
How to verify
npm install
npm run lint
eslint-local-rules.js
, which should be in shared package sometime soon)npm run jsdoc
out/index.html
samsam
.Checklist for author
npm run lint
passes