Skip to content

Commit c89490c

Browse files
committed
chore: fix JavaScript lint errors (issue #9334)
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 29fc92b commit c89490c

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

  • lib/node_modules/@stdlib

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* var lint = require( '@stdlib/_tools/lint/header-filenames' );
4040
*
4141
* var errs = lint.sync();
42-
* // returns [...]
42+
* // returns []
4343
*/
4444

4545
// MODULES //

lib/node_modules/@stdlib/assert/tools/array-like-function/examples/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ var bool;
2727
var f;
2828
var i;
2929

30-
arr1 = new Array( 25 );
30+
arr1 = [];
31+
arr1.length = 25;
3132
for ( i = 0; i < arr1.length; i++ ) {
3233
arr1[ i ] = i;
3334
}
3435

35-
arr2 = new Array( 25 );
36+
arr2 = [];
37+
arr2.length = 25;
3638
for ( i = 0; i < arr2.length; i++ ) {
3739
arr2[ i ] = 2 * i;
3840
}

lib/node_modules/@stdlib/constants/float32/ninf/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
var FLOAT32_NINF = require( './../lib' );
2222

2323
console.log( FLOAT32_NINF );
24-
// => -infinity
24+
// => -Infinity

lib/node_modules/@stdlib/math/strided/special/atan-by/test/test.main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,17 @@ tape( 'the function computes the arctangent via a callback function', function t
7474
atanBy( x.length, x, 1, y, 1, accessor );
7575
t.deepEqual( y, expected, 'deep equal' );
7676

77-
x = new Array( 5 ); // sparse array
77+
x = [];
78+
x.length = 5; // sparse array
7879
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7980

8081
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8182

8283
atanBy( x.length, x, 1, y, 1, accessor );
8384
t.deepEqual( y, expected, 'deep equal' );
8485

85-
x = new Array( 5 ); // sparse array
86+
x = [];
87+
x.length = 5; // sparse array
8688
x[ 2 ] = rand();
8789
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8890

0 commit comments

Comments
 (0)