From 46c271aa2261d1da74cf6a71ca779abdf8f0bd05 Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 27 Oct 2020 13:47:40 -0400 Subject: [PATCH] Fix linter issues --- src/main/index.js | 2 ++ src/renderer/main.js | 1 + src/renderer/store/modules/utils.js | 1 + 3 files changed, 4 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index f07a5b96..11cf1871 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -145,6 +145,7 @@ function createWindow () { backgroundColor: '#fff', icon: isDev ? path.join(__dirname, '../../_icons/iconColor.png') + /* eslint-disable-next-line */ : `${__dirname}/_icons/iconColor.png`, autoHideMenuBar: true, // useContentSize: true, @@ -199,6 +200,7 @@ function createWindow () { if (isDev) { mainWindow.loadURL('http://localhost:9080') } else { + /* eslint-disable-next-line */ mainWindow.loadFile(`${__dirname}/index.html`) global.__static = path diff --git a/src/renderer/main.js b/src/renderer/main.js index 1306b87b..3fe54df2 100644 --- a/src/renderer/main.js +++ b/src/renderer/main.js @@ -25,6 +25,7 @@ Vue.use(VueI18n) // List of locales approved for use const activeLocales = ['en-US', 'en_GB', 'ar', 'bg', 'da', 'de-DE', 'el', 'es', 'es-MX', 'fi', 'fr-FR', 'he', 'hu', 'hr', 'id', 'it', 'ja', 'nl', 'pl', 'pt', 'pt-BR', 'pt-PT', 'ru', 'sl', 'sv', 'tr', 'vi', 'zh-CN', 'zh-TW'] const messages = {} +/* eslint-disable-next-line */ const fileLocation = isDev ? 'static/locales/' : `${__dirname}/static/locales/` // Take active locales and load respective YAML file diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 6493a447..292d408e 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -122,6 +122,7 @@ const actions = { getRegionData ({ commit }, payload) { let fileData + /* eslint-disable-next-line */ const fileLocation = payload.isDev ? './static/geolocations/' : `${__dirname}/static/geolocations/` if (fs.existsSync(`${fileLocation}${payload.locale}`)) { fileData = fs.readFileSync(`${fileLocation}${payload.locale}/countries.json`)