From b998ecd3b5df863efead37c5aa7b9906dffd95bf Mon Sep 17 00:00:00 2001 From: macleodbroad-wf Date: Sun, 20 Aug 2017 00:46:49 -0400 Subject: [PATCH] Enables "requireReturnType" for valid-jsdoc lint rule (#3374) --- .eslintrc | 2 +- lib/network/modules/LayoutEngine.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index 00cbc299..47886fa1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -31,7 +31,7 @@ "requireReturnDescription": false, "requireReturn": false, "requireParamDescription": false, - "requireReturnType": false + "requireReturnType": true }], } // To flag presence of console.log without breaking linting: diff --git a/lib/network/modules/LayoutEngine.js b/lib/network/modules/LayoutEngine.js index d1175971..d4e0a82b 100644 --- a/lib/network/modules/LayoutEngine.js +++ b/lib/network/modules/LayoutEngine.js @@ -238,7 +238,7 @@ class HierarchicalStatus { * * @param {vis.Node} node1 * @param {vis.Node} node2 - * @return true if the two nodes have a same ancestor node, false otherwise + * @return {boolean} true if the two nodes have a same ancestor node, false otherwise */ hasSameParent(node1, node2) { let parents1 = this.parentReference[node1.id]; @@ -263,7 +263,7 @@ class HierarchicalStatus { * * @param {vis.Node} node1 * @param {vis.Node} node2 - * @return true if this is so, false otherwise + * @return {Boolean} true if this is so, false otherwise */ inSameSubNetwork(node1, node2) { return (this.trees[node1.id] === this.trees[node2.id]);