diff --git a/.eslintrc b/.eslintrc index 9d426858..cd66dba1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -23,6 +23,7 @@ "anonymous": "always", "named": "never", }], + "no-extra-semi": "error", "no-undef": "error", "no-useless-escape": "error", "operator-linebreak": ["error", "before"], diff --git a/index.js b/index.js index 44dd0f9c..be759e87 100644 --- a/index.js +++ b/index.js @@ -110,7 +110,7 @@ function createExitHarness(conf, wait) { es.on('error', function (err) { harness._exitCode = 1; }); } stream.on('end', function () { ended = true; }); - }; + } } module.exports.createHarness = createHarness; diff --git a/lib/results.js b/lib/results.js index bd5cf2d7..35b6569d 100644 --- a/lib/results.js +++ b/lib/results.js @@ -158,7 +158,7 @@ function encodeResult(res, count) { output += ' # SKIP' + ((typeof res.skip === 'string') ? ' ' + coalesceWhiteSpaces(res.skip) : ''); } else if (res.todo) { output += ' # TODO' + ((typeof res.todo === 'string') ? ' ' + coalesceWhiteSpaces(res.todo) : ''); - }; + } output += '\n'; if (res.ok) return output; diff --git a/test/double_end.js b/test/double_end.js index 23d6dc7c..af630cae 100644 --- a/test/double_end.js +++ b/test/double_end.js @@ -20,7 +20,7 @@ test(function (tt) { // This code is unfortunately by necessity highly coupled to node // versions, and may require tweaking with future versions of the timers // library. - function doEnd() { throw new Error(); }; + function doEnd() { throw new Error(); } var to = setTimeout(doEnd, 5000); clearTimeout(to); to._onTimeout = doEnd;