Skip to content

Commit ea9df69

Browse files
committed
Replace undefined with void 0 and fix lint errors
1 parent 0dd2383 commit ea9df69

File tree

494 files changed

+1562
-1580
lines changed

Some content is hidden

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

494 files changed

+1562
-1580
lines changed

lib/node_modules/@stdlib/_tools/bib/citation-reference/test/test.async.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ tape( 'if provided a first argument which is not a string, the function throws a
4242
NaN,
4343
true,
4444
null,
45-
undefined,
45+
void 0,
4646
[],
4747
{},
48-
function(){}
48+
function noop() {}
4949
];
5050

5151
for ( i = 0; i < values.length; i++ ) {
@@ -69,10 +69,10 @@ tape( 'if provided a first argument which is not a string, the function throws a
6969
NaN,
7070
true,
7171
null,
72-
undefined,
72+
void 0,
7373
[],
7474
{},
75-
function(){}
75+
function noop() {}
7676
];
7777

7878
for ( i = 0; i < values.length; i++ ) {
@@ -97,9 +97,9 @@ tape( 'if provided an options argument which is not an object, the function thro
9797
NaN,
9898
true,
9999
null,
100-
undefined,
100+
void 0,
101101
[],
102-
function(){}
102+
function noop() {}
103103
];
104104

105105
for ( i = 0; i < values.length; i++ ) {
@@ -135,7 +135,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
135135
NaN,
136136
true,
137137
null,
138-
undefined,
138+
void 0,
139139
[],
140140
{}
141141
];
@@ -162,7 +162,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
162162
NaN,
163163
true,
164164
null,
165-
undefined,
165+
void 0,
166166
[],
167167
{}
168168
];

lib/node_modules/@stdlib/_tools/bib/citation-reference/test/test.sync.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ tape( 'if provided a first argument which is not a string, the function throws a
4141
NaN,
4242
true,
4343
null,
44-
undefined,
44+
void 0,
4545
[],
4646
{},
47-
function(){}
47+
function noop() {}
4848
];
4949

5050
for ( i = 0; i < values.length; i++ ) {
@@ -68,10 +68,10 @@ tape( 'if provided a first argument which is not a string, the function throws a
6868
NaN,
6969
true,
7070
null,
71-
undefined,
71+
void 0,
7272
[],
7373
{},
74-
function(){}
74+
function noop() {}
7575
];
7676

7777
for ( i = 0; i < values.length; i++ ) {
@@ -96,9 +96,9 @@ tape( 'if provided an options argument which is not an object, the function thro
9696
NaN,
9797
true,
9898
null,
99-
undefined,
99+
void 0,
100100
[],
101-
function(){}
101+
function noop() {}
102102
];
103103

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

lib/node_modules/@stdlib/_tools/bib/citation-reference/test/test.validate.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ tape( 'if provided an `options` argument which is not an `object`, the function
4444
NaN,
4545
true,
4646
null,
47-
undefined,
47+
void 0,
4848
[],
49-
function(){}
49+
function noop() {}
5050
];
5151

5252
for ( i = 0; i < values.length; i++ ) {
@@ -68,10 +68,10 @@ tape( 'if provided a `database` option which is not a `string`, the function ret
6868
NaN,
6969
true,
7070
null,
71-
undefined,
71+
void 0,
7272
[],
7373
{},
74-
function(){}
74+
function noop() {}
7575
];
7676

7777
for ( i = 0; i < values.length; i++ ) {
@@ -95,10 +95,10 @@ tape( 'if provided a `csl` option which is not a `string`, the function returns
9595
NaN,
9696
true,
9797
null,
98-
undefined,
98+
void 0,
9999
[],
100100
{},
101-
function(){}
101+
function noop() {}
102102
];
103103

104104
for ( i = 0; i < values.length; i++ ) {
@@ -138,7 +138,7 @@ tape( 'the function ignores unsupported/unrecognized options', function test( t
138138
opts = {
139139
'beep': 'boop',
140140
'a': 'b',
141-
'c': [1,2,3]
141+
'c': [ 1, 2, 3 ]
142142
};
143143
obj = {};
144144
err = validate( obj, opts );
@@ -148,4 +148,3 @@ tape( 'the function ignores unsupported/unrecognized options', function test( t
148148

149149
t.end();
150150
});
151-

lib/node_modules/@stdlib/_tools/lint/filenames/test/test.async.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
5858
NaN,
5959
true,
6060
null,
61-
undefined,
61+
void 0,
6262
[],
6363
{}
6464
];
@@ -85,7 +85,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
8585
NaN,
8686
true,
8787
null,
88-
undefined,
88+
void 0,
8989
[],
9090
{}
9191
];

lib/node_modules/@stdlib/_tools/lint/filenames/test/test.validate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tape( 'if provided an `options` argument which is not an `object`, the function
4444
NaN,
4545
true,
4646
null,
47-
undefined,
47+
void 0,
4848
[],
4949
function noop() {}
5050
];
@@ -68,7 +68,7 @@ tape( 'if provided a `dir` option which is not a `string`, the function returns
6868
NaN,
6969
true,
7070
null,
71-
undefined,
71+
void 0,
7272
[],
7373
{},
7474
function noop() {}
@@ -95,7 +95,7 @@ tape( 'if provided a `pattern` option which is not a `string`, the function retu
9595
NaN,
9696
true,
9797
null,
98-
undefined,
98+
void 0,
9999
[],
100100
{},
101101
function noop() {}

lib/node_modules/@stdlib/_tools/lint/header-filenames/test/test.async.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
5858
NaN,
5959
true,
6060
null,
61-
undefined,
61+
void 0,
6262
[],
6363
{}
6464
];
@@ -85,7 +85,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
8585
NaN,
8686
true,
8787
null,
88-
undefined,
88+
void 0,
8989
[],
9090
{}
9191
];

lib/node_modules/@stdlib/_tools/lint/header-filenames/test/test.validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tape( 'if provided an `options` argument which is not an `object`, the function
4444
NaN,
4545
true,
4646
null,
47-
undefined,
47+
void 0,
4848
[],
4949
function noop() {}
5050
];
@@ -68,7 +68,7 @@ tape( 'if provided a `dir` option which is not a `string`, the function returns
6868
NaN,
6969
true,
7070
null,
71-
undefined,
71+
void 0,
7272
[],
7373
{},
7474
function noop() {}

lib/node_modules/@stdlib/_tools/lint/namespace-aliases/test/test.validate.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tape( 'if provided an `options` argument which is not an `object`, the function
4545
true,
4646
false,
4747
null,
48-
undefined,
48+
void 0,
4949
[],
5050
function noop() {}
5151
];
@@ -70,7 +70,7 @@ tape( 'if provided a `dir` option which is not a `string`, the function returns
7070
true,
7171
false,
7272
null,
73-
undefined,
73+
void 0,
7474
[],
7575
{},
7676
function noop() {}
@@ -121,4 +121,3 @@ tape( 'the function ignores unsupported/unrecognized options', function test( t
121121

122122
t.end();
123123
});
124-

lib/node_modules/@stdlib/_tools/lint/pkg-json/test/test.async.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
6262
NaN,
6363
true,
6464
null,
65-
undefined,
65+
void 0,
6666
[],
6767
{}
6868
];
@@ -89,7 +89,7 @@ tape( 'if provided a callback argument which is not a function, the function thr
8989
NaN,
9090
true,
9191
null,
92-
undefined,
92+
void 0,
9393
[],
9494
{}
9595
];

lib/node_modules/@stdlib/_tools/lint/pkg-json/test/test.validate.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tape( 'if provided an `options` argument which is not an `object`, the function
4444
NaN,
4545
true,
4646
null,
47-
undefined,
47+
void 0,
4848
[],
4949
function noop() {}
5050
];
@@ -68,7 +68,7 @@ tape( 'if provided a `dir` option which is not a `string`, the function returns
6868
NaN,
6969
true,
7070
null,
71-
undefined,
71+
void 0,
7272
[],
7373
{},
7474
function noop() {}
@@ -95,7 +95,7 @@ tape( 'if provided a `pattern` option which is not a `string`, the function retu
9595
NaN,
9696
true,
9797
null,
98-
undefined,
98+
void 0,
9999
[],
100100
{},
101101
function noop() {}
@@ -146,7 +146,7 @@ tape( 'if provided an `ignore` option which is not an array of strings, the func
146146
NaN,
147147
true,
148148
null,
149-
undefined,
149+
void 0,
150150
[],
151151
[ '5', null ],
152152
[ 'beep', 5 ],
@@ -203,4 +203,3 @@ tape( 'the function ignores unsupported/unrecognized options', function test( t
203203

204204
t.end();
205205
});
206-

0 commit comments

Comments
 (0)