From 5226f2549bbf68229b7a76955901a01b0449849c Mon Sep 17 00:00:00 2001 From: Christoph Diehl Date: Sat, 10 Jun 2017 06:41:53 +0200 Subject: [PATCH] Fix ESLint issues --- lib/logging/console.js | 8 ++++---- lib/utils/platform.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/logging/console.js b/lib/logging/console.js index 55e0107..d340348 100644 --- a/lib/logging/console.js +++ b/lib/logging/console.js @@ -7,9 +7,9 @@ var websocket = null var logger = (function () { // eslint-disable-line no-unused-vars const sep = '\n/* ### NEXT TESTCASE ############################## */' const color = { - red: '\033[1;31m', - green: '\033[1;32m', - clear: '\033[0m' + red: '\033[1;31m', // eslint-disable-line + green: '\033[1;32m', // eslint-disable-line + clear: '\033[0m' // eslint-disable-line } if (utils.platform.isWindows) { color.red = '' @@ -49,7 +49,7 @@ var logger = (function () { // eslint-disable-line no-unused-vars } function JSError (msg) { - error(comment(msg)) + error(comment("ERROR: " + msg)) } function comment (msg) { diff --git a/lib/utils/platform.js b/lib/utils/platform.js index 0f77f5c..5481ab1 100644 --- a/lib/utils/platform.js +++ b/lib/utils/platform.js @@ -68,7 +68,7 @@ utils.platform = (function () { platform.SpeechRecognition = platformName(['SpeechRecognition', 'webkitSpeechRecognition']) platform.SpeechGrammarList = platformName(['SpeechGrammarList', 'webkitSpeechGrammarList']) - platform.SpeechGrammar = platformName(['SpeechGrammar']) + platform.SpeechGrammar = platformName(['SpeechGrammar']) /* function findWebGLContextName (candidates) {