Skip to content

Commit

Permalink
[eslint] enable no-multi-spaces, no-multiple-empty-lines, `space-…
Browse files Browse the repository at this point in the history
…in-parens`
  • Loading branch information
ljharb committed Jul 24, 2021
1 parent f0756f3 commit be1eb21
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -47,6 +47,7 @@
"object-curly-spacing": ["error", "always"],
"operator-linebreak": ["error", "before"],
"semi-style": ["error", "last"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"words": false,
Expand Down
2 changes: 1 addition & 1 deletion bin/tape
Expand Up @@ -25,7 +25,7 @@ if (typeof opts.require === 'string') {
}

opts.require.forEach(function (module) {
var options = { basedir: cwd, extensions: Object.keys(require.extensions) };
var options = { basedir: cwd, extensions: Object.keys(require.extensions) };
if (module) {
/* This check ensures we ignore `-r ""`, trailing `-r`, or
* other silly things the user might (inadvertently) be doing.
Expand Down
1 change: 0 additions & 1 deletion test/async-await/async-bug.js
Expand Up @@ -24,7 +24,6 @@ test('async-error', async function myTest(t) {
t.end();
});


function sleep(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
Expand Down
1 change: 0 additions & 1 deletion test/comment.js
Expand Up @@ -64,7 +64,6 @@ tap.test('null argument', function (assert) {
});
});


// Exploratory test, how is whitespace treated?
tap.test('whitespace', function (assert) {
assert.plan(1);
Expand Down
5 changes: 2 additions & 3 deletions test/create_multiple_streams.js
Expand Up @@ -13,7 +13,7 @@ tape.test('createMultipleStreams', function (tt) {

th('test one', function (tht) {
tht.plan(1);
setTimeout( function () {
setTimeout(function () {
tht.pass();
testOneComplete = true;
}, 100);
Expand All @@ -26,8 +26,7 @@ tape.test('createMultipleStreams', function (tt) {

th.onFinish(function () {
tt.equal(th._results.count, 2, 'harness test ran');
tt.equal(th._results.fail, 0, "harness test didn't fail");
tt.equal(th._results.fail, 0, "harness test didn't fail");
});
});


2 changes: 1 addition & 1 deletion test/exit.js
Expand Up @@ -27,7 +27,7 @@ tap.test('exit ok', function (t) {
'',
'# ok',
'', // yes, these double-blank-lines at the end are required.
'' // if you can figure out how to remove them, please do!
'' // if you can figure out how to remove them, please do!
].join('\n'));
};

Expand Down
1 change: 0 additions & 1 deletion test/nested2.js
Expand Up @@ -12,7 +12,6 @@ test(function (t) {
});
});


t.test('teardown', function (st) {
st.end();
});
Expand Down

0 comments on commit be1eb21

Please sign in to comment.