From 740872d14aa58111a327be40a8bc6d9ab529dc94 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Mon, 5 Aug 2019 15:19:48 -0700 Subject: [PATCH] fix lint problems --- src/main/ScratchDesktopTelemetry.js | 2 +- src/main/telemetry/TelemetryClient.js | 2 +- src/renderer/about.jsx | 2 +- webpack.makeConfig.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/ScratchDesktopTelemetry.js b/src/main/ScratchDesktopTelemetry.js index a2352d2..314f458 100644 --- a/src/main/ScratchDesktopTelemetry.js +++ b/src/main/ScratchDesktopTelemetry.js @@ -77,7 +77,7 @@ class ScratchDesktopTelemetry { } _buildMetadata (metadata) { - const { projectName, language, ...codeMetadata } = metadata; + const {projectName, language, ...codeMetadata} = metadata; return defaultsDeep({ projectName, language, diff --git a/src/main/telemetry/TelemetryClient.js b/src/main/telemetry/TelemetryClient.js index 16fe3b5..de94505 100644 --- a/src/main/telemetry/TelemetryClient.js +++ b/src/main/telemetry/TelemetryClient.js @@ -87,7 +87,6 @@ class TelemetryClient { this._store = new ElectronStore({ name: storeName }); - console.log(`Telemetry configuration storage path: ${this._store.path}`); if (clientID) { this.clientID = clientID; @@ -263,6 +262,7 @@ class TelemetryClient { if (packetInfo.attempts < this._deliveryAttemptLimit) { this._packetQueue.push(packetInfo); } else { + // eslint-disable-next-line no-console console.warn('Dropping packet which exceeded retry limit', packet); } } diff --git a/src/renderer/about.jsx b/src/renderer/about.jsx index 6abe151..8906fe3 100644 --- a/src/renderer/about.jsx +++ b/src/renderer/about.jsx @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import {author, productName, version} from '../../package.json'; +import {productName, version} from '../../package.json'; import logo from '../icon/ScratchDesktop.svg'; diff --git a/webpack.makeConfig.js b/webpack.makeConfig.js index 5399438..1793e0c 100644 --- a/webpack.makeConfig.js +++ b/webpack.makeConfig.js @@ -7,7 +7,7 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const isProduction = (process.env.NODE_ENV === 'production'); const electronVersion = childProcess.execSync(`${electronPath} --version`, {encoding: 'utf8'}).trim(); -console.log(`Targeting Electron ${electronVersion}`); +console.log(`Targeting Electron ${electronVersion}`); // eslint-disable-line no-console const makeConfig = function (options) { // eslint-disable-next-line no-console