@@ -53,6 +53,7 @@
],
"linebreak-style": "off",
"no-trailing-spaces": "error",
+ "no-console": "error",
"prefer-const": [
"error",
{
@@ -1,5 +1,4 @@
-
const fs = require('fs');
const path = require('path');
const http = require('http');
@@ -96,5 +95,7 @@ get(location).then((data) => {
''
].join('\n'));
}).catch((err) => {
+ /* eslint-disable */
console.log(err.message);
+ /* eslint-enable */
});
@@ -142,5 +142,7 @@ get(url).then((data) => {
@@ -289,7 +289,9 @@ class Application {
const promise = autoUpdater.checkForUpdates();
if (promise) {
promise.catch((error) => {
console.log(error.message);
}
@@ -13,7 +13,9 @@ dagre.layout = (graph, options) => {
const result = callback();
const duration = Date.now() - start;
if (options.time) {
console.log(name + ': ' + duration + 'ms');
return result;
};