From b91068c34694f292ec26f0b41475c796bd0d5389 Mon Sep 17 00:00:00 2001 From: efarooqui Date: Wed, 17 Feb 2021 11:36:36 -0800 Subject: [PATCH] Linting errors --- src/copy/en.js | 2 +- src/lib/Controller.js | 2 +- src/lib/util.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/copy/en.js b/src/copy/en.js index a1b412b..38b1599 100644 --- a/src/copy/en.js +++ b/src/copy/en.js @@ -14,6 +14,6 @@ export default { }, success: { update: 'All sheets updated', - export: dest => `All resources exported to the file: ${dest}`, + export: dest => `All resources exported to the file: ${dest}` } } diff --git a/src/lib/Controller.js b/src/lib/Controller.js index 30a2ce8..bbd05dc 100644 --- a/src/lib/Controller.js +++ b/src/lib/Controller.js @@ -41,7 +41,7 @@ class Controller { } retrieveAll (fileDest) { - if (!fileDest) return Promise.reject(new Error(copy.errors.export.fileMissing)) + if (!fileDest) return Promise.reject(new Error(copy.errors.export.fileMissing)) const indexedData = {} const urls = [] diff --git a/src/lib/util.js b/src/lib/util.js index 7ea863f..84f8367 100755 --- a/src/lib/util.js +++ b/src/lib/util.js @@ -16,7 +16,7 @@ function camelize (str) { }) } -export async function exportToFile(fileDest, data) { +export async function exportToFile (fileDest, data) { const stringifiedData = JSON.stringify(data, null, 2) const filePath = `${fileDest}/export.json`