Skip to content

Commit 37b26e6

Browse files
chore: fix JavaScript lint errors
PR-URL: #8519 Closes: #8515 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent b642a63 commit 37b26e6

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/resolve.sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function getPkgs( pkgs, basedir ) {
5656
len = pkgs.length;
5757
debug( 'Resolving %d packages...', len );
5858

59-
out = new Array( len );
59+
out = [];
6060
for ( i = 0; i < len; i++ ) {
6161
pkg = pkgs[ i ];
6262
k = i + 1;
@@ -65,7 +65,7 @@ function getPkgs( pkgs, basedir ) {
6565
opts = {
6666
'basedir': basedir
6767
};
68-
out[ i ] = {};
68+
out.push( {} );
6969
out[ i ].pkg = pkg;
7070

7171
main = resolve( pkg, opts );

lib/node_modules/@stdlib/ndarray/slice-to/benchmark/benchmark.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ bench( pkg+'::0d,non-base', function benchmark( b ) {
6666
var s;
6767
var i;
6868

69-
/* eslint-disable object-curly-newline */
69+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
7070

7171
values = [
7272
empty( [], { 'dtype': 'float64' } ),
@@ -76,7 +76,7 @@ bench( pkg+'::0d,non-base', function benchmark( b ) {
7676
empty( [], { 'dtype': 'generic' } )
7777
];
7878

79-
/* eslint-enable object-curly-newline */
79+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
8080

8181
s = [];
8282

@@ -131,7 +131,7 @@ bench( pkg+'::1d,non-base', function benchmark( b ) {
131131
var s;
132132
var i;
133133

134-
/* eslint-disable object-curly-newline */
134+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
135135

136136
values = [
137137
empty( [ 2 ], { 'dtype': 'float64' } ),
@@ -141,7 +141,7 @@ bench( pkg+'::1d,non-base', function benchmark( b ) {
141141
empty( [ 2 ], { 'dtype': 'generic' } )
142142
];
143143

144-
/* eslint-enable object-curly-newline */
144+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
145145

146146
s = [ 1 ];
147147

@@ -201,7 +201,7 @@ bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) {
201201
var s;
202202
var i;
203203

204-
/* eslint-disable object-curly-newline */
204+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
205205

206206
values = [
207207
empty( [ 2 ], { 'dtype': 'float64' } ),
@@ -211,7 +211,7 @@ bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) {
211211
empty( [ 2 ], { 'dtype': 'generic' } )
212212
];
213213

214-
/* eslint-enable object-curly-newline */
214+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
215215

216216
s = [ -20 ];
217217
opts = {
@@ -269,7 +269,7 @@ bench( pkg+'::2d,non-base', function benchmark( b ) {
269269
var s;
270270
var i;
271271

272-
/* eslint-disable object-curly-newline */
272+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
273273

274274
values = [
275275
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
@@ -279,7 +279,7 @@ bench( pkg+'::2d,non-base', function benchmark( b ) {
279279
empty( [ 2, 2 ], { 'dtype': 'generic' } )
280280
];
281281

282-
/* eslint-enable object-curly-newline */
282+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
283283

284284
s = [ 1, 1 ];
285285

@@ -339,7 +339,7 @@ bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) {
339339
var s;
340340
var i;
341341

342-
/* eslint-disable object-curly-newline */
342+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
343343

344344
values = [
345345
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
@@ -349,7 +349,7 @@ bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) {
349349
empty( [ 2, 2 ], { 'dtype': 'generic' } )
350350
];
351351

352-
/* eslint-enable object-curly-newline */
352+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
353353

354354
s = [ -20, null ];
355355
opts = {
@@ -407,7 +407,7 @@ bench( pkg+'::3d,non-base', function benchmark( b ) {
407407
var s;
408408
var i;
409409

410-
/* eslint-disable object-curly-newline */
410+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
411411

412412
values = [
413413
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
@@ -417,7 +417,7 @@ bench( pkg+'::3d,non-base', function benchmark( b ) {
417417
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
418418
];
419419

420-
/* eslint-enable object-curly-newline */
420+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
421421

422422
s = [ 1, 1, 1 ];
423423

@@ -477,7 +477,7 @@ bench( pkg+'::3d,non-base,out-of-bounds', function benchmark( b ) {
477477
var s;
478478
var i;
479479

480-
/* eslint-disable object-curly-newline */
480+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
481481

482482
values = [
483483
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
@@ -487,7 +487,7 @@ bench( pkg+'::3d,non-base,out-of-bounds', function benchmark( b ) {
487487
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
488488
];
489489

490-
/* eslint-enable object-curly-newline */
490+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
491491

492492
s = [ 1, -20, null ];
493493
opts = {
@@ -545,7 +545,7 @@ bench( pkg+'::4d,non-base', function benchmark( b ) {
545545
var s;
546546
var i;
547547

548-
/* eslint-disable object-curly-newline */
548+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
549549

550550
values = [
551551
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
@@ -555,7 +555,7 @@ bench( pkg+'::4d,non-base', function benchmark( b ) {
555555
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
556556
];
557557

558-
/* eslint-enable object-curly-newline */
558+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
559559

560560
s = [ 1, 1, 1, 1 ];
561561

@@ -615,7 +615,7 @@ bench( pkg+'::4d,non-base,out-of-bounds', function benchmark( b ) {
615615
var s;
616616
var i;
617617

618-
/* eslint-disable object-curly-newline */
618+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
619619

620620
values = [
621621
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
@@ -625,7 +625,7 @@ bench( pkg+'::4d,non-base,out-of-bounds', function benchmark( b ) {
625625
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
626626
];
627627

628-
/* eslint-enable object-curly-newline */
628+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
629629

630630
s = [ 1, 1, -20, null ];
631631
opts = {
@@ -683,7 +683,7 @@ bench( pkg+'::5d,non-base', function benchmark( b ) {
683683
var s;
684684
var i;
685685

686-
/* eslint-disable object-curly-newline */
686+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
687687

688688
values = [
689689
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
@@ -693,7 +693,7 @@ bench( pkg+'::5d,non-base', function benchmark( b ) {
693693
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
694694
];
695695

696-
/* eslint-enable object-curly-newline */
696+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
697697

698698
s = [ 1, 1, 1, 1, 1 ];
699699

@@ -753,7 +753,7 @@ bench( pkg+'::5d,non-base,out-of-bounds', function benchmark( b ) {
753753
var s;
754754
var i;
755755

756-
/* eslint-disable object-curly-newline */
756+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
757757

758758
values = [
759759
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
@@ -763,7 +763,7 @@ bench( pkg+'::5d,non-base,out-of-bounds', function benchmark( b ) {
763763
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
764764
];
765765

766-
/* eslint-enable object-curly-newline */
766+
/* eslint-enable object-curly-newline, stdlib/line-closing-bracket-spacing */
767767

768768
s = [ 1, 1, 1, -20, null ];
769769
opts = {

0 commit comments

Comments
 (0)