From 287d55b6e5d8f09b38f0511c361a16c12702d4b5 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Mon, 25 Jul 2022 12:21:01 +0100 Subject: [PATCH] Formatting --- src/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 3594eb4..5b34fed 100644 --- a/src/index.js +++ b/src/index.js @@ -250,10 +250,13 @@ function transformGlimmer(ast, { env }) { return } - let siblings = parent?.type === 'ConcatStatement' ? { - prev: parent.parts[index - 1], - next: parent.parts[index + 1], - } : null + let siblings = + parent?.type === 'ConcatStatement' + ? { + prev: parent.parts[index - 1], + next: parent.parts[index + 1], + } + : null node.chars = sortClasses(node.chars, { env, @@ -498,11 +501,11 @@ function visit(ast, callbackMap) { if (Array.isArray(child)) { for (let j = 0; j < child.length; j++) { if (child[j] !== null) { - _visit(child[j], node, keys[i], j, {...meta}) + _visit(child[j], node, keys[i], j, { ...meta }) } } } else if (typeof child?.type === 'string') { - _visit(child, node, keys[i], i, {...meta}) + _visit(child, node, keys[i], i, { ...meta }) } } }