Skip to content

Commit 5ab717a

Browse files
committed
Assign name to anonymous functions and fix other lint errors
1 parent f70daea commit 5ab717a

File tree

72 files changed

+85
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+85
-84
lines changed

lib/node_modules/@stdlib/assert/is-arguments/test/test.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable object-curly-newline */
12
'use strict';
23

34
// MODULES //
@@ -37,10 +38,10 @@ tape( 'the function returns `false` if not provided an `arguments` object', func
3738
true,
3839
[],
3940
{},
40-
{'length': 3.14},
41-
{'length': -1},
42-
{'length': '5'},
43-
function(){},
41+
{ 'length': 3.14 },
42+
{ 'length': -1 },
43+
{ 'length': '5' },
44+
function noop() {},
4445
new Arguments(),
4546
Array.prototype.slice.call( arguments )
4647
];
@@ -75,10 +76,10 @@ tape( 'the function uses a polyfill for environments which return an unexpected
7576
true,
7677
[],
7778
{},
78-
{'length': 3.14},
79-
{'length': -1},
80-
{'length': '5'},
81-
function(){},
79+
{ 'length': 3.14 },
80+
{ 'length': -1 },
81+
{ 'length': '5' },
82+
function noop() {},
8283
new Arguments(),
8384
Array.prototype.slice.call( arguments )
8485
];

lib/node_modules/@stdlib/assert/is-array/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tape( 'the function returns `false` if not provided an array', function test( t
3232
'5',
3333
null,
3434
NaN,
35-
function(){},
35+
function noop() {},
3636
undefined
3737
];
3838

@@ -59,7 +59,7 @@ tape( 'the function includes a polyfill for `Array.isArray`', function test( t )
5959
'5',
6060
null,
6161
NaN,
62-
function(){},
62+
function noop() {},
6363
undefined
6464
];
6565

lib/node_modules/@stdlib/assert/is-binary-string/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tape( 'the function returns `false` if not provided a binary string', function t
5353
undefined,
5454
[],
5555
{},
56-
function(){}
56+
function noop() {}
5757
];
5858

5959
for ( i = 0; i < values.length; i++ ) {

lib/node_modules/@stdlib/assert/is-boolean/test/test.generic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tape( 'the function returns `false` if not provided a boolean', function test( t
3434
undefined,
3535
[],
3636
{},
37-
function(){}
37+
function noop() {}
3838
];
3939

4040
for ( i = 0; i < values.length; i++ ) {

lib/node_modules/@stdlib/assert/is-boolean/test/test.object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ tape( 'function returns `false` if not provided a boolean', function test( t ) {
9595
new Date(),
9696
/./,
9797
new RegExp( '.' ),
98-
function(){}
98+
function noop() {}
9999
];
100100

101101
for ( i = 0; i < values.length; i++ ) {

lib/node_modules/@stdlib/assert/is-boolean/test/test.primitive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tape( 'function returns `false` if not provided a boolean', function test( t ) {
3838
undefined,
3939
[],
4040
{},
41-
function(){}
41+
function noop() {}
4242
];
4343

4444
for ( i = 0; i < values.length; i++ ) {

lib/node_modules/@stdlib/assert/is-browser/lib/global_scope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict';
33

44
/**
5-
* Test if the global scope is bound to the "window" variable present in browser environments. When creating a new function using the `Function(){}` constructor, the execution scope aliased by the `this` variable is the global scope.
5+
* Test if the global scope is bound to the "window" variable present in browser environments. When creating a new function using the `function(){}` constructor, the execution scope aliased by the `this` variable is the global scope.
66
*
77
* @private
88
* @returns {boolean} boolean indicating if global scope is bound to "window" variable

lib/node_modules/@stdlib/assert/is-buffer/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tape( 'if provided a Buffer object, the function returns `true`', function test(
1919
var i;
2020

2121
values = [
22-
new Buffer( [1,2,3,4] ),
22+
new Buffer( [ 1, 2, 3, 4 ] ),
2323
new Buffer( 'beep' ),
2424
new Buffer( new Buffer(4) )
2525
];
@@ -41,7 +41,7 @@ tape( 'if provided any value other than a Buffer object, the function returns `f
4141
null,
4242
undefined,
4343
true,
44-
function(){},
44+
function noop() {},
4545
[],
4646
{}
4747
];

lib/node_modules/@stdlib/assert/is-email-address/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tape( 'the function returns `false` when not provided an email address', functio
3535
true,
3636
[],
3737
{},
38-
function(){}
38+
function noop() {}
3939
];
4040
for ( i = 0; i < values.length; i++ ) {
4141
t.equal( isEmail( values[ i ] ), false, 'returns false' );

lib/node_modules/@stdlib/assert/is-even/test/test.generic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tape( 'the function returns `false` if not provided an even number', function te
3434
undefined,
3535
[],
3636
{},
37-
function(){}
37+
function noop() {}
3838
];
3939

4040
for ( i = 0; i < values.length; i++ ) {

0 commit comments

Comments
 (0)