Skip to content

Commit

Permalink
[eslint] enable no-extra-semi
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 26, 2021
1 parent 5f8afc9 commit 1af8f52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -23,6 +23,7 @@
"anonymous": "always",
"named": "never",
}],
"no-extra-semi": "error",
"no-undef": "error",
"no-useless-escape": "error",
"operator-linebreak": ["error", "before"],
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/results.js
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/double_end.js
Expand Up @@ -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;
Expand Down

0 comments on commit 1af8f52

Please sign in to comment.