Skip to content

Commit 9cd6dd6

Browse files
committed
Update lint directives
1 parent 5bfeeed commit 9cd6dd6

File tree

33 files changed

+44
-44
lines changed

33 files changed

+44
-44
lines changed

lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/entries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function entryPoints( pkgs, clbk ) {
9090
data.__stdlib__.envs.browser === false // eslint-disable-line no-underscore-dangle
9191
) {
9292
debug( 'Package is not compatible with browser environments: %s (%d of %d). Skipping...', pkg, k, total );
93-
done( null, [], i ); // eslint-disable-line callback-return
93+
done( null, [], i ); // eslint-disable-line node/callback-return
9494
continue;
9595
}
9696
debug( 'Resolving browser files for package: %s (%d of %d).', pkg, k, total );

lib/node_modules/@stdlib/repl/lib/process_top_level_await.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function createVisitors( visitors ) {
9090
if ( FLG ) {
9191
state.ancestors.push( node );
9292
}
93-
clbk( node, state, c ); // eslint-disable-line callback-return
93+
clbk( node, state, c ); // eslint-disable-line node/callback-return
9494
if ( FLG ) {
9595
state.ancestors.pop();
9696
}

lib/node_modules/@stdlib/streams/node/debug/benchmark/benchmark.throughput.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ bench( pkg+'::throughput', function benchmark( b ) {
9494
}
9595

9696
function onWrite( chunk, enc, clbk ) {
97-
clbk(); // eslint-disable-line callback-return
97+
clbk(); // eslint-disable-line node/callback-return
9898
next();
9999
}
100100
});
@@ -136,7 +136,7 @@ bench( pkg+'::throughput,noop_callback', function benchmark( b ) {
136136
}
137137

138138
function onWrite( chunk, enc, clbk ) {
139-
clbk(); // eslint-disable-line callback-return
139+
clbk(); // eslint-disable-line node/callback-return
140140
next();
141141
}
142142
});
@@ -179,7 +179,7 @@ bench( pkg+'::throughput,object_mode', function benchmark( b ) {
179179
}
180180

181181
function onWrite( chunk, enc, clbk ) {
182-
clbk(); // eslint-disable-line callback-return
182+
clbk(); // eslint-disable-line node/callback-return
183183
next();
184184
}
185185
});
@@ -222,7 +222,7 @@ bench( pkg+'::throughput,object_mode,noop_callback', function benchmark( b ) {
222222
}
223223

224224
function onWrite( chunk, enc, clbk ) {
225-
clbk(); // eslint-disable-line callback-return
225+
clbk(); // eslint-disable-line node/callback-return
226226
next();
227227
}
228228
});

lib/node_modules/@stdlib/streams/node/inspect/benchmark/benchmark.throughput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bench( pkg+'::throughput', function benchmark( b ) {
9292
}
9393

9494
function onWrite( chunk, enc, clbk ) {
95-
clbk(); // eslint-disable-line callback-return
95+
clbk(); // eslint-disable-line node/callback-return
9696
next();
9797
}
9898
});
@@ -134,7 +134,7 @@ bench( pkg+'::throughput,object_mode', function benchmark( b ) {
134134
}
135135

136136
function onWrite( chunk, enc, clbk ) {
137-
clbk(); // eslint-disable-line callback-return
137+
clbk(); // eslint-disable-line node/callback-return
138138
next();
139139
}
140140
});

lib/node_modules/@stdlib/streams/node/join/benchmark/benchmark.throughput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ bench( pkg+'::throughput', function benchmark( b ) {
9191
}
9292

9393
function onWrite( chunk, enc, clbk ) {
94-
clbk(); // eslint-disable-line callback-return
94+
clbk(); // eslint-disable-line node/callback-return
9595
next();
9696
}
9797
});
@@ -133,7 +133,7 @@ bench( pkg+'::throughput,object_mode', function benchmark( b ) {
133133
}
134134

135135
function onWrite( chunk, enc, clbk ) {
136-
clbk(); // eslint-disable-line callback-return
136+
clbk(); // eslint-disable-line node/callback-return
137137
next();
138138
}
139139
});

lib/node_modules/@stdlib/streams/node/split/benchmark/benchmark.throughput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ bench( pkg+'::throughput', function benchmark( b ) {
9191
}
9292

9393
function onWrite( chunk, enc, clbk ) {
94-
clbk(); // eslint-disable-line callback-return
94+
clbk(); // eslint-disable-line node/callback-return
9595
next();
9696
}
9797
});
@@ -133,7 +133,7 @@ bench( pkg+'::throughput,object_mode', function benchmark( b ) {
133133
}
134134

135135
function onWrite( chunk, enc, clbk ) {
136-
clbk(); // eslint-disable-line callback-return
136+
clbk(); // eslint-disable-line node/callback-return
137137
next();
138138
}
139139
});

lib/node_modules/@stdlib/streams/node/transform/benchmark/benchmark.throughput.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ bench( pkg+'::throughput:highWaterMark=<default>', function benchmark( b ) {
9797
}
9898

9999
function onWrite( chunk, enc, clbk ) {
100-
clbk(); // eslint-disable-line callback-return
100+
clbk(); // eslint-disable-line node/callback-return
101101
next();
102102
}
103103
});
@@ -144,7 +144,7 @@ bench( pkg+'::throughput:highWaterMark=0', function benchmark( b ) {
144144
}
145145

146146
function onWrite( chunk, enc, clbk ) {
147-
clbk(); // eslint-disable-line callback-return
147+
clbk(); // eslint-disable-line node/callback-return
148148
next();
149149
}
150150
});
@@ -195,7 +195,7 @@ bench( pkg+'::throughput,object_mode:highWaterMark=<default>', function benchmar
195195
}
196196

197197
function onWrite( chunk, enc, clbk ) {
198-
clbk(); // eslint-disable-line callback-return
198+
clbk(); // eslint-disable-line node/callback-return
199199
next();
200200
}
201201
});
@@ -247,7 +247,7 @@ bench( pkg+'::throughput,object_mode:highWaterMark=0', function benchmark( b ) {
247247
}
248248

249249
function onWrite( chunk, enc, clbk ) {
250-
clbk(); // eslint-disable-line callback-return
250+
clbk(); // eslint-disable-line node/callback-return
251251
next();
252252
}
253253
});

lib/node_modules/@stdlib/utils/async/any-by-right/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) {
7070
for ( i = 0; i < lim; i++ ) {
7171
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7272
if ( idx > 0 ) {
73-
next(); // eslint-disable-line callback-return
73+
next(); // eslint-disable-line node/callback-return
7474
}
7575
}
7676

lib/node_modules/@stdlib/utils/async/any-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) {
7272
for ( i = 0; i < lim; i++ ) {
7373
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7474
if ( idx < maxIndex ) {
75-
next(); // eslint-disable-line callback-return
75+
next(); // eslint-disable-line node/callback-return
7676
}
7777
}
7878

lib/node_modules/@stdlib/utils/async/bifurcate-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function limit( collection, opts, predicate, done ) {
8181
for ( i = 0; i < lim; i++ ) {
8282
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
8383
if ( idx < maxIndex ) {
84-
next(); // eslint-disable-line callback-return
84+
next(); // eslint-disable-line node/callback-return
8585
}
8686
}
8787
/**

lib/node_modules/@stdlib/utils/async/count-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function limit( collection, opts, indicator, done ) {
7575
for ( i = 0; i < lim; i++ ) {
7676
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7777
if ( idx < maxIndex ) {
78-
next(); // eslint-disable-line callback-return
78+
next(); // eslint-disable-line node/callback-return
7979
}
8080
}
8181
/**

lib/node_modules/@stdlib/utils/async/every-by-right/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) {
7070
for ( i = 0; i < lim; i++ ) {
7171
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7272
if ( idx > 0 ) {
73-
next(); // eslint-disable-line callback-return
73+
next(); // eslint-disable-line node/callback-return
7474
}
7575
}
7676

lib/node_modules/@stdlib/utils/async/every-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) {
7272
for ( i = 0; i < lim; i++ ) {
7373
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7474
if ( idx < maxIndex ) {
75-
next(); // eslint-disable-line callback-return
75+
next(); // eslint-disable-line node/callback-return
7676
}
7777
}
7878

lib/node_modules/@stdlib/utils/async/for-each-right/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function limit( collection, opts, fcn, done ) {
7070
for ( i = 0; i < lim; i++ ) {
7171
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7272
if ( idx > 0 ) {
73-
next(); // eslint-disable-line callback-return
73+
next(); // eslint-disable-line node/callback-return
7474
}
7575
}
7676

lib/node_modules/@stdlib/utils/async/for-each/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function limit( collection, opts, fcn, done ) {
7272
for ( i = 0; i < lim; i++ ) {
7373
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7474
if ( idx < maxIndex ) {
75-
next(); // eslint-disable-line callback-return
75+
next(); // eslint-disable-line node/callback-return
7676
}
7777
}
7878

lib/node_modules/@stdlib/utils/async/group-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function limit( collection, opts, indicator, done ) {
8282
for ( i = 0; i < lim; i++ ) {
8383
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
8484
if ( idx < maxIndex ) {
85-
next(); // eslint-disable-line callback-return
85+
next(); // eslint-disable-line node/callback-return
8686
}
8787
}
8888
/**

lib/node_modules/@stdlib/utils/async/inmap-right/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function limit( collection, opts, fcn, done ) {
7070
for ( i = 0; i < lim; i++ ) {
7171
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7272
if ( idx > 0 ) {
73-
next(); // eslint-disable-line callback-return
73+
next(); // eslint-disable-line node/callback-return
7474
}
7575
}
7676
/**

lib/node_modules/@stdlib/utils/async/inmap/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function limit( collection, opts, fcn, done ) {
7272
for ( i = 0; i < lim; i++ ) {
7373
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7474
if ( idx < maxIndex ) {
75-
next(); // eslint-disable-line callback-return
75+
next(); // eslint-disable-line node/callback-return
7676
}
7777
}
7878
/**

lib/node_modules/@stdlib/utils/async/map-function/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function limit( n, opts, fcn, done ) {
7272
for ( i = 0; i < lim; i++ ) {
7373
// This guard is necessary to protect against synchronous functions which exhaust all invocations...
7474
if ( idx < m ) {
75-
next(); // eslint-disable-line callback-return
75+
next(); // eslint-disable-line node/callback-return
7676
}
7777
}
7878
/**

lib/node_modules/@stdlib/utils/async/map-keys/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function limit( obj, opts, fcn, done ) {
8383
for ( i = 0; i < lim; i++ ) {
8484
// This guard is necessary to protect against synchronous functions which exhaust all properties...
8585
if ( idx < maxIndex ) {
86-
next(); // eslint-disable-line callback-return
86+
next(); // eslint-disable-line node/callback-return
8787
}
8888
}
8989
/**

lib/node_modules/@stdlib/utils/async/map-values/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function limit( obj, opts, fcn, done ) {
7777
for ( i = 0; i < lim; i++ ) {
7878
// This guard is necessary to protect against synchronous functions which exhaust all properties...
7979
if ( idx < maxIndex ) {
80-
next(); // eslint-disable-line callback-return
80+
next(); // eslint-disable-line node/callback-return
8181
}
8282
}
8383
/**

lib/node_modules/@stdlib/utils/async/none-by-right/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function limit( collection, opts, predicate, done ) {
7070
for ( i = 0; i < lim; i++ ) {
7171
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7272
if ( idx > 0 ) {
73-
next(); // eslint-disable-line callback-return
73+
next(); // eslint-disable-line node/callback-return
7474
}
7575
}
7676

lib/node_modules/@stdlib/utils/async/none-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function limit( collection, opts, predicate, done ) {
7272
for ( i = 0; i < lim; i++ ) {
7373
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7474
if ( idx < maxIndex ) {
75-
next(); // eslint-disable-line callback-return
75+
next(); // eslint-disable-line node/callback-return
7676
}
7777
}
7878

lib/node_modules/@stdlib/utils/async/reduce-right/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function limit( collection, acc, opts, fcn, done ) {
7171
for ( i = 0; i < lim; i++ ) {
7272
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7373
if ( idx > 0 ) {
74-
next(); // eslint-disable-line callback-return
74+
next(); // eslint-disable-line node/callback-return
7575
}
7676
}
7777
/**

lib/node_modules/@stdlib/utils/async/reduce/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function limit( collection, acc, opts, fcn, done ) {
7373
for ( i = 0; i < lim; i++ ) {
7474
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7575
if ( idx < maxIndex ) {
76-
next(); // eslint-disable-line callback-return
76+
next(); // eslint-disable-line node/callback-return
7777
}
7878
}
7979
/**

lib/node_modules/@stdlib/utils/async/series-waterfall/lib/factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function factory( fcns, clbk, thisArg ) {
7878
*/
7979
function waterfall() {
8080
var idx = -1;
81-
next(); // eslint-disable-line callback-return
81+
next(); // eslint-disable-line node/callback-return
8282

8383
/**
8484
* Executes the next function in the series.

lib/node_modules/@stdlib/utils/async/some-by-right/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function limit( collection, n, opts, predicate, done ) {
7373
for ( i = 0; i < lim; i++ ) {
7474
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7575
if ( idx > 0 ) {
76-
next(); // eslint-disable-line callback-return
76+
next(); // eslint-disable-line node/callback-return
7777
}
7878
}
7979

lib/node_modules/@stdlib/utils/async/some-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function limit( collection, n, opts, predicate, done ) {
7575
for ( i = 0; i < lim; i++ ) {
7676
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7777
if ( idx < maxIndex ) {
78-
next(); // eslint-disable-line callback-return
78+
next(); // eslint-disable-line node/callback-return
7979
}
8080
}
8181

lib/node_modules/@stdlib/utils/async/tabulate-by/lib/limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function limit( collection, opts, indicator, done ) {
7777
for ( i = 0; i < lim; i++ ) {
7878
// This guard is necessary to protect against synchronous functions which exhaust all collection elements...
7979
if ( idx < maxIndex ) {
80-
next(); // eslint-disable-line callback-return
80+
next(); // eslint-disable-line node/callback-return
8181
}
8282
}
8383
/**

lib/node_modules/@stdlib/utils/find/lib/find.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function find( arr, options, clbk ) { // eslint-disable-line stdlib/no-redeclare
164164
// Search moving from begin-to-end [0,1,...]:
165165
for ( i = 0; i < len; i++ ) {
166166
v = arr[ i ];
167-
if ( cb( v, i, arr ) ) { // eslint-disable-line callback-return
167+
if ( cb( v, i, arr ) ) { // eslint-disable-line node/callback-return
168168
if ( mode === 2 ) {
169169
out.push( [ i, v ] );
170170
} else if ( mode === 1 ) {
@@ -184,7 +184,7 @@ function find( arr, options, clbk ) { // eslint-disable-line stdlib/no-redeclare
184184
k = -k;
185185
for ( i = len-1; i >= 0; i-- ) {
186186
v = arr[ i ];
187-
if ( cb( v, i, arr ) ) { // eslint-disable-line callback-return
187+
if ( cb( v, i, arr ) ) { // eslint-disable-line node/callback-return
188188
if ( mode === 2 ) {
189189
out.push( [ i, v ] );
190190
} else if ( mode === 1 ) {

lib/node_modules/@stdlib/utils/inmap-right/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bench( pkg+'::loop', function benchmark( b ) {
108108
for ( i = 0; i < b.iterations; i++ ) {
109109
arr[ 0 ] += 10.0;
110110
for ( j = arr.length-1; j >= 0; j-- ) {
111-
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line callback-return
111+
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line node/callback-return
112112
}
113113
if ( arr.length === 0 ) {
114114
b.fail( 'should not be empty' );

lib/node_modules/@stdlib/utils/inmap/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bench( pkg+'::loop', function benchmark( b ) {
108108
for ( i = 0; i < b.iterations; i++ ) {
109109
arr[ 0 ] += 10.0;
110110
for ( j = 0; j < arr.length; j++ ) {
111-
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line callback-return
111+
arr[ j ] = clbk( arr[ j ], j ); // eslint-disable-line node/callback-return
112112
}
113113
if ( arr.length === 0 ) {
114114
b.fail( 'should not be empty' );

lib/node_modules/@stdlib/utils/parallel/lib/node/exec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function exec( files, opts, clbk ) {
9292
idx = -1;
9393
for ( i = 0; i < opts.concurrency; i++ ) {
9494
pid = pids[ i%pids.length ];
95-
next( workers[ pid ] ); // eslint-disable-line callback-return
95+
next( workers[ pid ] ); // eslint-disable-line node/callback-return
9696
}
9797

9898
/**
@@ -181,7 +181,7 @@ function exec( files, opts, clbk ) {
181181
numClosed += 1;
182182
debug( '%d of %d child processes have closed.', numClosed, opts.workers );
183183
if ( numClosed === opts.workers ) {
184-
done(); // eslint-disable-line callback-return
184+
done(); // eslint-disable-line node/callback-return
185185
}
186186
}
187187

0 commit comments

Comments
 (0)