Browse Source

Enables "requireReturnType" for valid-jsdoc lint rule (#3374)

revert-3409-performance
macleodbroad-wf 7 years ago
committed by Yotam Berkowitz
parent
commit
b998ecd3b5
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      .eslintrc
  2. +2
    -2
      lib/network/modules/LayoutEngine.js

+ 1
- 1
.eslintrc View File

@ -31,7 +31,7 @@
"requireReturnDescription": false, "requireReturnDescription": false,
"requireReturn": false, "requireReturn": false,
"requireParamDescription": false, "requireParamDescription": false,
"requireReturnType": false
"requireReturnType": true
}], }],
} }
// To flag presence of console.log without breaking linting: // To flag presence of console.log without breaking linting:

+ 2
- 2
lib/network/modules/LayoutEngine.js View File

@ -238,7 +238,7 @@ class HierarchicalStatus {
* *
* @param {vis.Node} node1 * @param {vis.Node} node1
* @param {vis.Node} node2 * @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) { hasSameParent(node1, node2) {
let parents1 = this.parentReference[node1.id]; let parents1 = this.parentReference[node1.id];
@ -263,7 +263,7 @@ class HierarchicalStatus {
* *
* @param {vis.Node} node1 * @param {vis.Node} node1
* @param {vis.Node} node2 * @param {vis.Node} node2
* @return true if this is so, false otherwise
* @return {Boolean} true if this is so, false otherwise
*/ */
inSameSubNetwork(node1, node2) { inSameSubNetwork(node1, node2) {
return (this.trees[node1.id] === this.trees[node2.id]); return (this.trees[node1.id] === this.trees[node2.id]);

Loading…
Cancel
Save