Skip to content

Commit 2dd70c8

Browse files
committed
Fix lint errors
1 parent 653f2a2 commit 2dd70c8

File tree

9 files changed

+29
-12
lines changed

9 files changed

+29
-12
lines changed

lib/node_modules/@stdlib/_tools/scaffold/package-json/lib/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
var copy = require( '@stdlib/utils/copy' );
2424
var contains = require( '@stdlib/assert/contains' );
2525
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
26-
var pkg = require( './../../../../../../../tools/snippets/package.json' ); // TODO: Replace once snippets can be required without walking the tree
2726
var standardize = require( '@stdlib/_tools/package-json/standardize' );
27+
var pkg = require( './../../../../../../../tools/snippets/package.json' ); // TODO: Replace once snippets can be required without walking the tree
2828
var defaults = require( './defaults.json' );
2929
var validate = require( './validate.js' );
3030

lib/node_modules/@stdlib/crypto/arc4/test/fixtures/ksa.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var copy = require( '@stdlib/utils/copy' );
24+
var Uint8Array = require( '@stdlib/array/uint8' );
2425
var S = require( './ksa.json' );
2526

2627

lib/node_modules/@stdlib/crypto/arc4/test/fixtures/prga.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var copy = require( '@stdlib/utils/copy' );
24+
var Uint8Array = require( '@stdlib/array/uint8' );
2425
var mutatedS = require( './prga.json' );
2526

2627

lib/node_modules/@stdlib/math/base/complex/cis/test/test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ tape( 'main export is a function', function test( t ) {
4444
});
4545

4646
tape( 'the function accepts an optional output array', function test( t ) {
47-
var out = new Array( 2 );
48-
var result = cis( out, 0.0, 0.0 );
47+
var result;
48+
var out;
49+
50+
out = new Array( 2 );
51+
result = cis( out, 0.0, 0.0 );
4952
t.deepEqual( out, [ 1.0, 0.0 ], 'returns expected values' );
5053
t.equal( out, result, 'returns output array' );
5154
t.end();

lib/node_modules/@stdlib/math/base/complex/divide/test/test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ tape( 'main export is a function', function test( t ) {
8787
});
8888

8989
tape( 'the function accepts an optional output array', function test( t ) {
90-
var out = new Array( 2 );
91-
var result = cdiv( out, 2.0, 4.0, 1.0, 2.0 );
90+
var result;
91+
var out;
92+
93+
out = new Array( 2 );
94+
result = cdiv( out, 2.0, 4.0, 1.0, 2.0 );
9295
t.deepEqual( out, [ 2.0, 0.0 ], 'values are correct' );
9396
t.equal( out, result, 'array reference is identical' );
9497
t.end();

lib/node_modules/@stdlib/math/base/complex/inv/test/test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ tape( 'main export is a function', function test( t ) {
5353
});
5454

5555
tape( 'the function accepts an optional output array', function test( t ) {
56-
var out = new Array( 2 );
57-
var result = cinv( out, 2.0, 4.0 );
56+
var result;
57+
var out;
58+
59+
out = new Array( 2 );
60+
result = cinv( out, 2.0, 4.0 );
5861
t.deepEqual( out, [ 0.1, -0.2 ], 'values are correct' );
5962
t.equal( out, result, 'array reference is identical' );
6063
t.end();

lib/node_modules/@stdlib/math/base/special/gcd/lib/bitwise_binary_gcd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* ## References
2525
*
26-
* - Stein, Josef. 1967. "Computational problems associated with Racah algebra." *Journal of Computational Physics* 1 (3): 397–405. doi:[10.1016/0021-9991(67)90047-2][@stein:1967].
26+
* - Stein, Josef. 1967. "Computational problems associated with Racah algebra." _Journal of Computational Physics_ 1 (3): 397–405. doi:[10.1016/0021-9991(67)90047-2][@stein:1967].
2727
*
2828
* [@stein:1967]: https://doi.org/10.1016/0021-9991(67)90047-2
2929
*

lib/node_modules/@stdlib/math/base/special/int32-abs/lib/abs.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
* // returns 10
3939
*/
4040
function abs( x ) {
41-
var y = x|0; // asm type annotation
42-
var mask = ( y >> 31 )|0; // asm type annotation
41+
var mask;
42+
var y;
43+
44+
y = x|0; // asm type annotation
45+
mask = ( y >> 31 )|0; // asm type annotation
4346
return ((y ^ mask) - mask)|0; // asm type annotation
4447
}
4548

lib/node_modules/@stdlib/time/now/lib/polyfill.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ var round = require( '@stdlib/math/base/special/round' );
3636
* // returns <number>
3737
*/
3838
function now() {
39-
var d = new Date();
40-
var ts = round( d.getTime() / 1000 );
39+
var ts;
40+
var d;
41+
42+
d = new Date();
43+
ts = round( d.getTime() / 1000 );
4144
return ts|0; // asm type annotation
4245
}
4346

0 commit comments

Comments
 (0)