diff --git a/.eslintrc b/.eslintrc index db6f0597..6a6eed21 100644 --- a/.eslintrc +++ b/.eslintrc @@ -8,6 +8,7 @@ "Promise": false, }, "rules": { + "comma-dangle": ["error", "never"], "indent": ["error", 4], "key-spacing": "error", "quotes": ["error", "single", { diff --git a/example/array.js b/example/array.js index b8ac2abf..8b998041 100644 --- a/example/array.js +++ b/example/array.js @@ -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)( diff --git a/example/fail.js b/example/fail.js index fbd95687..28c6ac71 100644 --- a/example/fail.js +++ b/example/fail.js @@ -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)( diff --git a/example/nested.js b/example/nested.js index a465bd42..0e4e1cbd 100644 --- a/example/nested.js +++ b/example/nested.js @@ -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)( diff --git a/example/nested_fail.js b/example/nested_fail.js index f2c12525..8013a48d 100644 --- a/example/nested_fail.js +++ b/example/nested_fail.js @@ -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)( diff --git a/example/not_enough_fail.js b/example/not_enough_fail.js index ce7961f5..ecd2dce1 100644 --- a/example/not_enough_fail.js +++ b/example/not_enough_fail.js @@ -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)( diff --git a/example/too_many_fail.js b/example/too_many_fail.js index 649401b5..e5780be0 100644 --- a/example/too_many_fail.js +++ b/example/too_many_fail.js @@ -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)( diff --git a/test/array.js b/test/array.js index d150b18e..7a27038a 100644 --- a/test/array.js +++ b/test/array.js @@ -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)( diff --git a/test/async-await.js b/test/async-await.js index c7a996d5..ef88ff01 100644 --- a/test/async-await.js +++ b/test/async-await.js @@ -233,7 +233,7 @@ tap.test('async-error', function (t) { '# pass 1', '# fail 1', '', - '', + '' ]); t.same(r.exitCode, 1); @@ -279,7 +279,7 @@ tap.test('async-bug', function (t) { '# pass 2', '# fail 1', '', - '', + '' ]); t.same(r.exitCode, 1); diff --git a/test/comment.js b/test/comment.js index 6161b69d..378db5a8 100644 --- a/test/comment.js +++ b/test/comment.js @@ -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(); }); diff --git a/test/error.js b/test/error.js index 7340e868..6b9025b3 100644 --- a/test/error.js +++ b/test/error.js @@ -28,7 +28,7 @@ tap.test('failures', function (tt) { '# tests 1', '# pass 0', '# fail 1', - '', + '' ]); })); diff --git a/test/exit/fail.js b/test/exit/fail.js index 6e8eb4f2..a976d4ce 100644 --- a/test/exit/fail.js +++ b/test/exit/fail.js @@ -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)( diff --git a/test/exit/ok.js b/test/exit/ok.js index 31bf6a4b..084692f5 100644 --- a/test/exit/ok.js +++ b/test/exit/ok.js @@ -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)( diff --git a/test/exit/too_few.js b/test/exit/too_few.js index 9ba2ee32..d92fe5c1 100644 --- a/test/exit/too_few.js +++ b/test/exit/too_few.js @@ -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)( diff --git a/test/fail.js b/test/fail.js index 1d0a312b..c5dab576 100644 --- a/test/fail.js +++ b/test/fail.js @@ -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)( diff --git a/test/nested.js b/test/nested.js index 98c9398c..d86e94cd 100644 --- a/test/nested.js +++ b/test/nested.js @@ -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)( diff --git a/test/no_callback.js b/test/no_callback.js index 646cbca0..47a478dc 100644 --- a/test/no_callback.js +++ b/test/no_callback.js @@ -31,7 +31,7 @@ tap.test('no callback', function (tt) { '# tests 1', '# pass 0', '# fail 1', - '', + '' ]); }; diff --git a/test/too_many.js b/test/too_many.js index aee90664..530ceb2a 100644 --- a/test/too_many.js +++ b/test/too_many.js @@ -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)(