Warn on console statement

This commit is contained in:
Patrick McDonagh
2018-04-25 17:01:32 -05:00
parent c53d7f87c1
commit 4832d35c51
3 changed files with 2 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ module.exports = {
"error",
"always"
],
"no-console": "off",
"no-console": "warn",
"react/prop-types": [0],
"no-case-declarations": "off"
}

View File

@@ -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?");
/***/ }),

View File

@@ -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}