From 18051f03f3a81f728e345204807c41b5e494a7fc Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Thu, 22 Mar 2018 13:34:55 -0700 Subject: [PATCH] lint --- lib/parse-glossary-doc.js | 2 +- script/build-glossary.js | 1 - script/build-module.js | 2 +- script/upload-glossary.js | 5 ++--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/parse-glossary-doc.js b/lib/parse-glossary-doc.js index bf325ab9305c1..1fb416b72db63 100644 --- a/lib/parse-glossary-doc.js +++ b/lib/parse-glossary-doc.js @@ -27,4 +27,4 @@ async function parseGlossaryDoc (locale) { }, {}) } -module.exports = parseGlossaryDoc \ No newline at end of file +module.exports = parseGlossaryDoc diff --git a/script/build-glossary.js b/script/build-glossary.js index 0f473b1a07d36..fba80cdf7e91d 100644 --- a/script/build-glossary.js +++ b/script/build-glossary.js @@ -58,4 +58,3 @@ parseGlossaryDoc().then(results => { fs.writeFileSync(glossaryFile, JSON.stringify(glossary, null, 2)) console.log(`Wrote ${glossaryFile} with ${glossary.length} entries.`) }) - diff --git a/script/build-module.js b/script/build-module.js index 5f84bb2ea99df..302532ac1a381 100755 --- a/script/build-module.js +++ b/script/build-module.js @@ -226,4 +226,4 @@ async function main () { ) } -main() \ No newline at end of file +main() diff --git a/script/upload-glossary.js b/script/upload-glossary.js index 977d3c6358d2a..5d94cd3930b3b 100644 --- a/script/upload-glossary.js +++ b/script/upload-glossary.js @@ -3,7 +3,6 @@ require('dotenv-safe').load() const fs = require('fs') -const path = require('path') const {post} = require('got') const FormData = require('form-data') const tmp = require('tmp') @@ -15,7 +14,7 @@ const form = new FormData() // make strings safe for writing to a CSV file function csvify (string) { - return '"' + string.replace(/\"/g, '\"') + '"' + return '"' + string.replace(/"/g, '"') + '"' } // Crowdin expects CSV files @@ -37,4 +36,4 @@ post(url, {body: form}) .catch(err => { console.error('Problem uploading glossary') console.error(err) - }) \ No newline at end of file + })