Update linter

This commit is contained in:
Thomas Nordquist
2020-04-16 10:56:46 +02:00
parent 19e8bfdb37
commit 30af13f793
53 changed files with 92 additions and 97 deletions

View File

@@ -82,7 +82,7 @@ function findNextNodeUpward(
}
const neighborNodes = sortedNodes(settings, parent)
const nodeIdx = neighborNodes.findIndex((n) => n.path() === treeNode.path())
const nodeIdx = neighborNodes.findIndex(n => n.path() === treeNode.path())
if (nodeIdx === 0) {
return parent
}
@@ -125,7 +125,7 @@ function findNextNodeDownwardNeighbor(
}
const neighborNodes = sortedNodes(settings, parent).filter(isTreeNodeVisible)
const nodeIdx = neighborNodes.findIndex((n) => n.path() === treeNode.path())
const nodeIdx = neighborNodes.findIndex(n => n.path() === treeNode.path())
const downwardNeighbor = neighborNodes[nodeIdx + 1]
if (downwardNeighbor) {
return downwardNeighbor