Skip to content

Commit

Permalink
[eslint] enable space-infix-ops
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2021
1 parent 4acf1f2 commit 233ffc6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -26,6 +26,7 @@
"no-undef": "error",
"no-useless-escape": "error",
"operator-linebreak": ["error", "before"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"words": false,
"nonwords": false,
Expand Down
4 changes: 2 additions & 2 deletions example/two.js
Expand Up @@ -6,13 +6,13 @@ test('one', function (t) {
t.plan(2);
t.ok(true);
setTimeout(function () {
t.equal(1+3, 4);
t.equal(1 + 3, 4);
}, 100);
});

test('two', function (t) {
t.plan(3);
t.equal(5, 2+3);
t.equal(5, 2 + 3);
setTimeout(function () {
t.equal('a'.charCodeAt(0), 97);
t.ok(true);
Expand Down
2 changes: 1 addition & 1 deletion test/browser/asserts.js
Expand Up @@ -5,7 +5,7 @@ var test = require('../../');
test(function (t) {
t.plan(4);
t.ok(true);
t.equal(3, 1+2);
t.equal(3, 1 + 2);
t.deepEqual([1, 2, [3, 4]], [1, 2, [3, 4]]);
t.notDeepEqual([1, 2, [3, 4, 5]], [1, 2, [3, 4]]);
});
2 changes: 1 addition & 1 deletion test/teardown.js
Expand Up @@ -95,7 +95,7 @@ tap.test('teardowns', function (tt) {
' [... stack stripped ...]',
' ...',
i > 0 ? [] : [
'not ok '+ (offset + 1) +' plan != count',
'not ok ' + (offset + 1) + ' plan != count',
' ---',
' operator: fail',
' expected: 1',
Expand Down
2 changes: 1 addition & 1 deletion test/todo_explanation.js
Expand Up @@ -7,7 +7,7 @@ var concat = require('concat-stream');
var common = require('./common');
var stripFullStack = common.stripFullStack;

tap.test('tape todo test', { todo: process.versions.node.match(/0\.8\.\d+/) ? 'Fails on node 0.8': false }, function (assert) {
tap.test('tape todo test', { todo: process.versions.node.match(/0\.8\.\d+/) ? 'Fails on node 0.8' : false }, function (assert) {
var test = tape.createHarness({ exit: false });
assert.plan(1);

Expand Down

0 comments on commit 233ffc6

Please sign in to comment.