From 58affc53dcbb1b64ee58bc829896669e238ca353 Mon Sep 17 00:00:00 2001 From: Prashant Andani Date: Sat, 13 Oct 2018 20:05:51 +0530 Subject: [PATCH] Code cleanup (#3131) --- app/index.js | 2 +- app/ui/window.js | 2 +- app/updater.js | 1 - app/utils/cli-install.js | 2 +- lib/utils/plugins.js | 4 ++-- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/index.js b/app/index.js index a36f4daa..eb2fc7a6 100644 --- a/app/index.js +++ b/app/index.js @@ -93,7 +93,7 @@ if (isDev) { //eslint-disable-next-line no-console console.log('running in dev mode'); - // Overide default appVersion which is set from package.json + // Override default appVersion which is set from package.json gitDescribe({customArguments: ['--tags']}, (error, gitInfo) => { if (!error) { app.setVersion(gitInfo.raw); diff --git a/app/ui/window.js b/app/ui/window.js index ec2bc197..751583c5 100644 --- a/app/ui/window.js +++ b/app/ui/window.js @@ -71,7 +71,7 @@ module.exports = class Window { // app.windowCallback is the createWindow callback // that can be set before the 'ready' app event - // and createWindow deifinition. It's executed in place of + // and createWindow definition. It's executed in place of // the callback passed as parameter, and deleted right after. (app.windowCallback || fn)(window); delete app.windowCallback; diff --git a/app/updater.js b/app/updater.js index 461f4e7d..27382eef 100644 --- a/app/updater.js +++ b/app/updater.js @@ -6,7 +6,6 @@ const retry = require('async-retry'); // Utilities // eslint-disable-next-line no-unused-vars -const notify = require('./notify'); const {version} = require('./package'); const {getDecoratedConfig} = require('./plugins'); diff --git a/app/utils/cli-install.js b/app/utils/cli-install.js index b6094ba1..606022cf 100644 --- a/app/utils/cli-install.js +++ b/app/utils/cli-install.js @@ -117,6 +117,6 @@ exports.installCLI = withNotification => { }); } else { withNotification && - notify('Hyper CLI instalation', 'Command is added in PATH only at package installation. Please reinstall.'); + notify('Hyper CLI installation', 'Command is added in PATH only at package installation. Please reinstall.'); } }; diff --git a/lib/utils/plugins.js b/lib/utils/plugins.js index aab0a141..e5086118 100644 --- a/lib/utils/plugins.js +++ b/lib/utils/plugins.js @@ -28,7 +28,7 @@ Module._load = function _load(path) { case 'hyper/component': //eslint-disable-next-line no-console console.warn( - 'DEPRECATED: If your plugin requires `hyper/component`, it must requires `react.PureComponent` instead and bundle `react` as a dependcy' + 'DEPRECATED: If your plugin requires `hyper/component`, it must requires `react.PureComponent` instead and bundle `react` as a dependency' ); return PureComponent; case 'hyper/notify': @@ -508,7 +508,7 @@ export function decorate(Component_, name) { } componentDidCatch() { this.setState({hasError: true}); - // No need to detail this error because React print those informations. + // No need to detail this error because React print these information. notify( 'Plugin error', `Plugins decorating ${name} has been disabled because of a plugin crash. Check Developer Tools for details.`