Fix prettier on all files

This commit is contained in:
2019-08-03 20:40:07 +05:30
parent feee690b48
commit 67206dfe41
24 changed files with 164 additions and 144 deletions
+4 -2
View File
@@ -16,7 +16,7 @@ function* traverseGenerator(
node: FiberNode,
{
order = ["self", "child", "sibling"]
}: { order?: Array<"self"|"child"|"sibling"> } = {}
}: { order?: Array<"self" | "child" | "sibling"> } = {}
): IterableIterator<FiberNode> {
let skipChild = false,
skipSibling = false;
@@ -52,7 +52,9 @@ function* traverseGenerator(
};
// For each item mentioned in order, find generator functions to run
const orderedGenerators = order.map((step) => traverseMap[step]).filter(tmp => tmp!==undefined);
const orderedGenerators = order
.map(step => traverseMap[step])
.filter(tmp => tmp !== undefined);
// Now run each generator till end
for (const eachGen of orderedGenerators) {