-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Added JSDoc to ESLint #3529
Added JSDoc to ESLint #3529
Conversation
Signed-off-by: Matthew Nickson <[email protected]>
Signed-off-by: Matthew Nickson <[email protected]>
@louislam Given node 14 went EoL 3 months ago (https://endoflife.date/nodejs) it is probably worth updating the workflows. That would also fix the linter issue here as node 14 is no longer supported by eslint-plugin-jsdoc (gajus/eslint-plugin-jsdoc#1034) |
Other than |
Actually, just looking through again, it looks like about a quarter to a half are automatic changes (stuff like Object to object) and another quarter or so is adding |
Most of them were just adding in an @returns void or the odd comment here or there, or adding descriptions for parameters. If you like, I could split it up into multiple PRs like we did for the original batch. |
# Conflicts: # server/database.js
Do you know how to get the JSDoc errors to show natively in VS Code? |
Cant remember the exact steps (it was so long ago when I did it) but I have a feeling just installing the eslint plugin should do that |
Checked on GitHub Codespace, it should work with the eslint plugin. Fyi, unlikely other rules, since some jsdoc rules cannot be fixed automatically by eslint, I change some rules to |
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
JSDoc has been added to the ESLint configuration and all errors have been corrected.
This is a follow up from the previous JSDoc PRs #2549 #1535 #1542 #1550 #1499. Hopefully adding JSDoc to ESLint should make this the last time anyone has to go through and fix JSDoc.
Type of change
Checklist
(including JSDoc for methods)