Skip to content

Commit 5f3509d

Browse files
committed
Fix lint errors
1 parent 1e230d5 commit 5f3509d

File tree

31 files changed

+57
-46
lines changed

31 files changed

+57
-46
lines changed

lib/node_modules/@stdlib/bench/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bench( 'Math.cos', opts, function benchmark( b ) {
3838
b.tic();
3939
for ( i = 0; i < b.iterations; i++ ) {
4040
x = (randu()*100.0) - 50.0;
41-
y = Math.cos( x );
41+
y = Math.cos( x ); // eslint-disable-line stdlib/no-builtin-math
4242
if ( y < -1.0 || y > 1.0 ) {
4343
b.fail( 'something went wrong!' );
4444
}

lib/node_modules/@stdlib/bench/harness/examples/auto_iterations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bench( 'Math.sin', opts, function benchmark( b ) {
3939
b.tic();
4040
for ( i = 0; i < b.iterations; i++ ) {
4141
x = (randu()*100.0) - 50.0;
42-
y = Math.sin( x );
42+
y = Math.sin( x ); // eslint-disable-line stdlib/no-builtin-math
4343
if ( y < -1.0 || y > 1.0 ) {
4444
b.fail( 'something went wrong!' );
4545
}

lib/node_modules/@stdlib/bench/harness/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bench( 'Math.sin', opts, function benchmark( b ) {
3838
b.tic();
3939
for ( i = 0; i < b.iterations; i++ ) {
4040
x = (randu()*100.0) - 50.0;
41-
y = Math.sin( x );
41+
y = Math.sin( x ); // eslint-disable-line stdlib/no-builtin-math
4242
if ( y < -1.0 || y > 1.0 ) {
4343
b.fail( 'something went wrong!' );
4444
}

lib/node_modules/@stdlib/bench/harness/examples/mixed_sync_async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bench( 'Math.sin', opts, function benchmark( b ) {
3838
b.tic();
3939
for ( i = 0; i < b.iterations; i++ ) {
4040
x = (randu()*100.0) - 50.0;
41-
y = Math.sin( x );
41+
y = Math.sin( x ); // eslint-disable-line stdlib/no-builtin-math
4242
if ( y < -1.0 || y > 1.0 ) {
4343
b.fail( 'something went wrong!' );
4444
}

lib/node_modules/@stdlib/bench/harness/examples/multiple_harness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ bench1( 'Math.sin', opts, function benchmark( b ) {
6262
b.tic();
6363
for ( i = 0; i < b.iterations; i++ ) {
6464
x = (randu()*100.0) - 50.0;
65-
y = Math.sin( x );
65+
y = Math.sin( x ); // eslint-disable-line stdlib/no-builtin-math
6666
if ( y < -1.0 || y > 1.0 ) {
6767
b.fail( 'something went wrong!' );
6868
}

lib/node_modules/@stdlib/bench/harness/examples/skip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bench( 'Math.sin', opts, function benchmark( b ) {
3838
b.tic();
3939
for ( i = 0; i < b.iterations; i++ ) {
4040
x = (randu()*100.0) - 50.0;
41-
y = Math.sin( x );
41+
y = Math.sin( x ); // eslint-disable-line stdlib/no-builtin-math
4242
if ( y < -1.0 || y > 1.0 ) {
4343
b.fail( 'something went wrong!' );
4444
}

lib/node_modules/@stdlib/blas/base/daxpy/test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,3 @@ tape( 'if a native implementation is not available, the main export is a JavaScr
8585
return new Error( 'Cannot find module' );
8686
}
8787
});
88-

lib/node_modules/@stdlib/blas/base/gaxpy/test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ tape( 'attached to the main export is a method providing an ndarray interface',
3636
t.strictEqual( typeof axpy.ndarray, 'function', 'method is a function' );
3737
t.end();
3838
});
39-

lib/node_modules/@stdlib/blas/base/gaxpy/test/test.main.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,14 @@ tape( 'the function supports a `y` stride', function test( t ) {
147147
});
148148

149149
tape( 'the function returns a reference to the destination array', function test( t ) {
150-
var x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];
151-
var y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];
150+
var out;
151+
var x;
152+
var y;
153+
154+
x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];
155+
y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];
152156

153-
var out = axpy( x.length, 3.0, x, 1, y, 1 );
157+
out = axpy( x.length, 3.0, x, 1, y, 1 );
154158

155159
t.strictEqual( out, y, 'same reference' );
156160
t.end();

lib/node_modules/@stdlib/blas/base/gcopy/test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ tape( 'attached to the main export is a method providing an ndarray interface',
3636
t.strictEqual( typeof copy.ndarray, 'function', 'method is a function' );
3737
t.end();
3838
});
39-

0 commit comments

Comments
 (0)