From 47d5d20ff847be5f0d5ebc4afdd8e83f81518f07 Mon Sep 17 00:00:00 2001 From: snewcomer Date: Wed, 24 Jul 2019 07:06:17 -0700 Subject: [PATCH] fix lint --- transforms/globals-to-ember-data-imports.js | 23 +++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/transforms/globals-to-ember-data-imports.js b/transforms/globals-to-ember-data-imports.js index 3562072..db137f2 100644 --- a/transforms/globals-to-ember-data-imports.js +++ b/transforms/globals-to-ember-data-imports.js @@ -166,16 +166,17 @@ function transform(file, api /*, options*/) { if (foundMapping) { let newSource = foundMapping.source; if (module.source !== newSource) { - root.find(j.ImportDeclaration, { - source: { - type: 'Literal', - value: module.source - } - }) - .find(j.Literal) - .forEach((importLiteral) => { - j(importLiteral).replaceWith(j.literal(newSource)) - }); + root + .find(j.ImportDeclaration, { + source: { + type: 'Literal', + value: module.source + } + }) + .find(j.Literal) + .forEach(importLiteral => { + j(importLiteral).replaceWith(j.literal(newSource)); + }); } } } @@ -495,7 +496,7 @@ function transform(file, api /*, options*/) { } } else { // Update literal paths based on mappings from 'ember-data/model' to '@ember-data/model' - updateLiteralPaths(root, mod, mappings) + updateLiteralPaths(root, mod, mappings); } }); }