Skip to content

Commit

Permalink
[eslint] ensure no trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 3, 2021
1 parent 0743333 commit 04da90b
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"Promise": false,
},
"rules": {
"comma-dangle": ["error", "never"],
"indent": ["error", 4],
"key-spacing": "error",
"quotes": ["error", "single", {
Expand Down
2 changes: 1 addition & 1 deletion example/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('array', function (t) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion example/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('array', function (t) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion example/nested.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('nested array test', function (t) {
[3, 4],
[1, 2, [3, 4]],
[5, 6],
[[1, 2, [3, 4]], [5, 6]],
[[1, 2, [3, 4]], [5, 6]]
];

Function(['fn', 'g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion example/nested_fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('nested array test', function (t) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion example/not_enough_fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('array', function (t) {
[3, 4],
[1, 2, [3, 4]],
[5, 6],
[[1, 2, [3, 4]], [5, 6]],
[[1, 2, [3, 4]], [5, 6]]
];

Function(['fn', 'g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion example/too_many_fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('array', function (t) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion test/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tap.test('array test', function (tt) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
4 changes: 2 additions & 2 deletions test/async-await.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ tap.test('async-error', function (t) {
'# pass 1',
'# fail 1',
'',
'',
''
]);
t.same(r.exitCode, 1);

Expand Down Expand Up @@ -279,7 +279,7 @@ tap.test('async-bug', function (t) {
'# pass 2',
'# fail 1',
'',
'',
''
]);
t.same(r.exitCode, 1);

Expand Down
4 changes: 2 additions & 2 deletions test/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ tap.test('multiline string', function (assert) {
test('multiline strings', function (t) {
t.comment([
'a',
'b',
'b'
].join('\n'));
t.comment([
'c',
'd',
'd'
].join('\r\n'));
t.end();
});
Expand Down
2 changes: 1 addition & 1 deletion test/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tap.test('failures', function (tt) {
'# tests 1',
'# pass 0',
'# fail 1',
'',
''
]);
}));

Expand Down
2 changes: 1 addition & 1 deletion test/exit/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('array', function (t) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion test/exit/ok.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test('array', function (t) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion test/exit/too_few.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('array', function (t) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion test/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ tap.test('array test', function (tt) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion test/nested.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tap.test('array test', function (tt) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down
2 changes: 1 addition & 1 deletion test/no_callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tap.test('no callback', function (tt) {
'# tests 1',
'# pass 0',
'# fail 1',
'',
''
]);
};

Expand Down
2 changes: 1 addition & 1 deletion test/too_many.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ tap.test('array test', function (tt) {
[ 3, 4 ],
[ 1, 2, [ 3, 4 ] ],
[ 5, 6 ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
[ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]
];

Function(['fn','g'], output)(
Expand Down

0 comments on commit 04da90b

Please sign in to comment.