Update prettier

This commit is contained in:
Thomas Nordquist
2020-04-15 23:54:30 +02:00
parent fbfbe94d19
commit 237c718a0a
76 changed files with 130 additions and 257 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