mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 13:42:27 -05:00
fix lint problems
This commit is contained in:
parent
ddd1156dea
commit
740872d14a
4 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ class ScratchDesktopTelemetry {
|
|||
}
|
||||
|
||||
_buildMetadata (metadata) {
|
||||
const { projectName, language, ...codeMetadata } = metadata;
|
||||
const {projectName, language, ...codeMetadata} = metadata;
|
||||
return defaultsDeep({
|
||||
projectName,
|
||||
language,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue