-
Notifications
You must be signed in to change notification settings - Fork 34
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 eslint-plugin-jsdoc and fixed errors #133
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This reverts h changed files that shouldn't have been changed.
Codecov Report
@@ Coverage Diff @@
## master #133 +/- ##
==========================================
- Coverage 86.19% 86.17% -0.02%
==========================================
Files 38 38
Lines 927 926 -1
Branches 265 265
==========================================
- Hits 799 798 -1
Misses 113 113
Partials 15 15
Continue to review full report at Codecov.
|
@dawsbot I got lost trying to document these last ones because they deal with contracts. Leaving these last ones for you; besides those, I think this is merge ready.
|
* | ||
* @param jsonABIArgument | ||
* @param args | ||
* @example |
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.
Is this empty "@example
" statement intentional? Seems like it was thrown in to skip a warning from the eslint rule, but we do want examples for everything
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.
That'll still throw an error actually (jsdoc/require-example
). The empty is added through eslint --fix
using the JSDoc plugin
@@ -15,6 +27,12 @@ function expandType(type: ContractTypes) { | |||
} | |||
return type; | |||
} | |||
/** | |||
* | |||
* @param jsonABIArgument |
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.
We don't need @param
lines like this because TS automatically documents these by the function definition
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.
Also added through eslint --fix
but still throws warning until the description is added (jsdoc/require-description
)
Closes #132
eslint-plugin-jsdoc