Skip to content

Commit aee9216

Browse files
committed
js-doc
babel/babel-eslint#85 I fixed some issues, but more... Want to get team feedback on whether or not this is useful.
1 parent cad6d32 commit aee9216

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

client/.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239

240240
// https://github.com/babel/babel-eslint/issues/85
241241
// Disabling until this issue is resolved
242-
"valid-jsdoc": 0,
242+
"valid-jsdoc": 2,
243243

244244
"valid-typeof": 2,
245245
"wrap-iife": 0,

client/assets/javascripts/actions/CommentActions.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class CommentActions {
77
*
88
* @param {String} url
99
* @param {Boolean} displaySpinner
10-
* @return undefined
10+
* @returns {undefined}
1111
*/
1212
fetchComments(url, displaySpinner) {
1313
this.dispatch(displaySpinner);
@@ -20,7 +20,7 @@ class CommentActions {
2020
* A new list of comments is available, refresh the store.
2121
*
2222
* @param {Array} comments
23-
* @return undefined
23+
* @returns {undefined}
2424
*/
2525
updateComments(comments) {
2626
this.dispatch(comments);
@@ -30,7 +30,7 @@ class CommentActions {
3030
* An error occurred while fetching comments, dispatch error message.
3131
*
3232
* @param {String} errorMessage
33-
* @return undefined
33+
* @returns {undefined}
3434
*/
3535
updateCommentsError(errorMessage) {
3636
this.dispatch(errorMessage);
@@ -40,7 +40,7 @@ class CommentActions {
4040
* A new comment has been submitted to the server, dispatch it.
4141
*
4242
* @param {Array} comment
43-
* @return undefined
43+
* @returns {undefined}
4444
*/
4545
addComment(comment) {
4646
this.dispatch(comment);

client/assets/javascripts/actions/FormActions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class FormActions {
77
* Text is being entered in the comment form, update the state.
88
*
99
* @param {String} comment
10-
* @return undefined
10+
* @returns {undefined}
1111
*/
1212
updateComment(comment) {
1313
this.dispatch(comment);
@@ -17,7 +17,7 @@ class FormActions {
1717
* Submit a new comment to the server.
1818
*
1919
* @param {String} comment
20-
* @return undefined
20+
* @returns {undefined}
2121
*/
2222
submitComment(url, comment) {
2323
this.dispatch();

client/assets/javascripts/utils/CommentsManager.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const CommentsManager = {
55
* Retrieve comments from server using AJAX call.
66
*
77
* @param {String} url
8-
* @return Object
8+
* @returns {Object}
99
*/
1010
fetchComments(url) {
1111
return $.ajax({
@@ -19,7 +19,7 @@ const CommentsManager = {
1919
*
2020
* @param {String} url
2121
* @param {Object} comment
22-
* @return Object
22+
* @returns {Object}
2323
*/
2424
submitComment(url, comment) {
2525
return $.ajax({

0 commit comments

Comments
 (0)