diff --git a/app/lib/components/term.js b/app/lib/components/term.js index 2fff5017..468c3d18 100644 --- a/app/lib/components/term.js +++ b/app/lib/components/term.js @@ -3,7 +3,7 @@ import React from 'react'; import Color from 'color'; import hterm from '../hterm'; import Component from '../component'; -import { getColorList } from '../utils/colors' +import { getColorList } from '../utils/colors'; export default class Term extends Component { diff --git a/app/lib/utils/colors.js b/app/lib/utils/colors.js index 54b0df0d..d5c146c7 100644 --- a/app/lib/utils/colors.js +++ b/app/lib/utils/colors.js @@ -17,7 +17,7 @@ const colorList = [ 'lightWhite', 'colorCubes', 'grayscale' -] +]; export function getColorList (colors) { // For backwards compatibility, return early if it's already an array @@ -26,6 +26,6 @@ export function getColorList (colors) { } return colorList.map((colorName) => { - return colors[colorName] - }) + return colors[colorName]; + }); } diff --git a/auto-updater.js b/auto-updater.js index 7b16828d..05f1cea5 100644 --- a/auto-updater.js +++ b/auto-updater.js @@ -1,6 +1,6 @@ const { autoUpdater } = require('electron'); const { version } = require('./package'); -const notify = require('./notify'); +const notify = require('./notify'); // eslint-disable-line no-unused-vars const ms = require('ms'); const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx'; diff --git a/index.js b/index.js index b39d8bc0..d95c19e4 100644 --- a/index.js +++ b/index.js @@ -40,8 +40,9 @@ const url = 'file://' + resolve( console.log('electron will open', url); app.on('window-all-closed', () => { - if (process.platform != 'darwin') + if (process.platform !== 'darwin') { app.quit(); + } }); app.on('ready', () => {