mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fix lint (#351)
* fix lint * restore `notify` require, add eslint disable comment
This commit is contained in:
parent
f385df4ada
commit
8e86883989
4 changed files with 7 additions and 6 deletions
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
3
index.js
3
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', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue