Skip to content

Commit 4acf1f2

Browse files
committed
[eslint] enable comma-spacing
1 parent 8a0ab53 commit 4acf1f2

13 files changed

+17
-13
lines changed

.eslintrc

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
},
1010
"rules": {
1111
"comma-dangle": ["error", "never"],
12+
"comma-spacing": [2, {
13+
"before": false,
14+
"after": true,
15+
}],
1216
"indent": ["error", 4],
1317
"key-spacing": "error",
1418
"quotes": ["error", "single", {

example/array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('array', function (t) {
2525
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
2626
];
2727

28-
Function(['fn','g'], output)(
28+
Function(['fn', 'g'], output)(
2929
function (xs) {
3030
t.same(arrays.shift(), xs);
3131
return xs;

example/fail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('array', function (t) {
2525
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
2626
];
2727

28-
Function(['fn','g'], output)(
28+
Function(['fn', 'g'], output)(
2929
function (xs) {
3030
t.same(arrays.shift(), xs);
3131
return xs;

example/nested_fail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test('nested array test', function (t) {
3434
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
3535
];
3636

37-
Function(['fn','g'], output)(
37+
Function(['fn', 'g'], output)(
3838
function (xs) {
3939
t.same(arrays.shift(), xs);
4040
return xs;

example/too_many_fail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('array', function (t) {
2525
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
2626
];
2727

28-
Function(['fn','g'], output)(
28+
Function(['fn', 'g'], output)(
2929
function (xs) {
3030
t.same(arrays.shift(), xs);
3131
return xs;

test/array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tap.test('array test', function (tt) {
5050
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
5151
];
5252

53-
Function(['fn','g'], output)(
53+
Function(['fn', 'g'], output)(
5454
function (xs) {
5555
t.same(arrays.shift(), xs);
5656
return xs;

test/browser/asserts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ test(function (t) {
66
t.plan(4);
77
t.ok(true);
88
t.equal(3, 1+2);
9-
t.deepEqual([1,2,[3,4]], [1,2,[3,4]]);
10-
t.notDeepEqual([1,2,[3,4,5]], [1,2,[3,4]]);
9+
t.deepEqual([1, 2, [3, 4]], [1, 2, [3, 4]]);
10+
t.notDeepEqual([1, 2, [3, 4, 5]], [1, 2, [3, 4]]);
1111
});

test/exit/fail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('array', function (t) {
2525
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
2626
];
2727

28-
Function(['fn','g'], output)(
28+
Function(['fn', 'g'], output)(
2929
function (xs) {
3030
t.same(arrays.shift(), xs);
3131
return xs;

test/exit/ok.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test('array', function (t) {
2626
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
2727
];
2828

29-
Function(['fn','g'], output)(
29+
Function(['fn', 'g'], output)(
3030
function (xs) {
3131
t.same(arrays.shift(), xs);
3232
return xs;

test/exit/too_few.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('array', function (t) {
2525
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
2626
];
2727

28-
Function(['fn','g'], output)(
28+
Function(['fn', 'g'], output)(
2929
function (xs) {
3030
t.same(arrays.shift(), xs);
3131
return xs;

test/fail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tap.test('array test', function (tt) {
6767
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
6868
];
6969

70-
Function(['fn','g'], output)(
70+
Function(['fn', 'g'], output)(
7171
function (xs) {
7272
t.same(arrays.shift(), xs);
7373
return xs;

test/nested.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ tap.test('array test', function (tt) {
6565
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
6666
];
6767

68-
Function(['fn','g'], output)(
68+
Function(['fn', 'g'], output)(
6969
function (xs) {
7070
t.same(arrays.shift(), xs);
7171
return xs;

test/too_many.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ tap.test('array test', function (tt) {
6868
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
6969
];
7070

71-
Function(['fn','g'], output)(
71+
Function(['fn', 'g'], output)(
7272
function (xs) {
7373
t.same(arrays.shift(), xs);
7474
return xs;

0 commit comments

Comments
 (0)