diff --git a/.eslintrc b/.eslintrc index f3aa91ab..9c9b874a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -20,7 +20,7 @@ "no-console": 0, "no-alert": 0, "no-underscore-dangle": 0, - "max-len": [1, 120, 2, {ignoreComments: true}], + "max-len": [1, 120, 2, {"ignoreComments": true, "ignoreTemplateLiterals": true}], "quote-props": [1, "consistent-as-needed"], "no-unused-vars": [1, {"vars": "local", "args": "none"}], "consistent-return": ["error", { "treatUndefinedAsUnspecified": true }], diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index 712ccceb..b3f9fade 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -81,7 +81,10 @@ class PreviewFrame extends React.Component { handleConsoleEvent(messageEvent) { if (Array.isArray(messageEvent.data)) { - const decodedMessages = messageEvent.data.map(message => Object.assign(Decode(message.log), { source: message.source })); + const decodedMessages = messageEvent.data.map(message => + Object.assign(Decode(message.log), { + source: message.source + })); decodedMessages.every((message, index, arr) => { const { data: args } = message;