From 4832d35c518dd1bbe1f720fc3be6be55a1045e34 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Wed, 25 Apr 2018 17:01:32 -0500 Subject: [PATCH] Warn on console statement --- .eslintrc.js | 2 +- app/build/bundle.js | 2 +- app/src/actions/actions_taghistory.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 511aac9..dcd0498 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -37,7 +37,7 @@ module.exports = { "error", "always" ], - "no-console": "off", + "no-console": "warn", "react/prop-types": [0], "no-case-declarations": "off" } diff --git a/app/build/bundle.js b/app/build/bundle.js index 3bdaabb..9e22d31 100644 --- a/app/build/bundle.js +++ b/app/build/bundle.js @@ -91,7 +91,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nexports.ipcTagHistoryUpdate = ipcTagHistoryUpdate;\nvar IPC_TAGHISTORYUPDATE = exports.IPC_TAGHISTORYUPDATE = \"IPC_TAGHISTORYUPDATE\";\n\nfunction ipcTagHistoryUpdate(event, _ref) {\n\tvar tagName = _ref.tagName,\n\t historyRows = _ref.historyRows;\n\n\tconsole.log(event, tagName, historyRows);\n\treturn {\n\t\ttype: IPC_TAGHISTORYUPDATE,\n\t\tpayload: { tagName: tagName, historyRows: historyRows }\n\t};\n}\n\n//# sourceURL=webpack:///./app/src/actions/actions_taghistory.js?"); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nexports.ipcTagHistoryUpdate = ipcTagHistoryUpdate;\nvar IPC_TAGHISTORYUPDATE = exports.IPC_TAGHISTORYUPDATE = \"IPC_TAGHISTORYUPDATE\";\n\nfunction ipcTagHistoryUpdate(event, _ref) {\n\tvar tagName = _ref.tagName,\n\t historyRows = _ref.historyRows;\n\n\treturn {\n\t\ttype: IPC_TAGHISTORYUPDATE,\n\t\tpayload: { tagName: tagName, historyRows: historyRows }\n\t};\n}\n\n//# sourceURL=webpack:///./app/src/actions/actions_taghistory.js?"); /***/ }), diff --git a/app/src/actions/actions_taghistory.js b/app/src/actions/actions_taghistory.js index c91e2c4..194a6d8 100644 --- a/app/src/actions/actions_taghistory.js +++ b/app/src/actions/actions_taghistory.js @@ -1,7 +1,6 @@ export const IPC_TAGHISTORYUPDATE = "IPC_TAGHISTORYUPDATE"; export function ipcTagHistoryUpdate(event, {tagName, historyRows}){ - console.log(event, tagName, historyRows); return { type: IPC_TAGHISTORYUPDATE, payload: {tagName, historyRows}