Skip to content

Commit

Permalink
[eslint] enable comma-spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2021
1 parent 8a0ab53 commit 4acf1f2
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .eslintrc
Expand Up @@ -9,6 +9,10 @@
},
"rules": {
"comma-dangle": ["error", "never"],
"comma-spacing": [2, {
"before": false,
"after": true,
}],
"indent": ["error", 4],
"key-spacing": "error",
"quotes": ["error", "single", {
Expand Down
2 changes: 1 addition & 1 deletion example/array.js
Expand Up @@ -25,7 +25,7 @@ test('array', function (t) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion example/fail.js
Expand Up @@ -25,7 +25,7 @@ test('array', function (t) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion example/nested_fail.js
Expand Up @@ -34,7 +34,7 @@ test('nested array test', function (t) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion example/too_many_fail.js
Expand Up @@ -25,7 +25,7 @@ test('array', function (t) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion test/array.js
Expand Up @@ -50,7 +50,7 @@ tap.test('array test', function (tt) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
4 changes: 2 additions & 2 deletions test/browser/asserts.js
Expand Up @@ -6,6 +6,6 @@ test(function (t) {
t.plan(4);
t.ok(true);
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]]);
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/exit/fail.js
Expand Up @@ -25,7 +25,7 @@ test('array', function (t) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion test/exit/ok.js
Expand Up @@ -26,7 +26,7 @@ test('array', function (t) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion test/exit/too_few.js
Expand Up @@ -25,7 +25,7 @@ test('array', function (t) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion test/fail.js
Expand Up @@ -67,7 +67,7 @@ tap.test('array test', function (tt) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion test/nested.js
Expand Up @@ -65,7 +65,7 @@ tap.test('array test', function (tt) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down
2 changes: 1 addition & 1 deletion test/too_many.js
Expand Up @@ -68,7 +68,7 @@ tap.test('array test', function (tt) {
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Function(['fn', 'g'], output)(
function (xs) {
t.same(arrays.shift(), xs);
return xs;
Expand Down

0 comments on commit 4acf1f2

Please sign in to comment.