Skip to content

Commit 04af95a

Browse files
author
JE4NVRG
committed
chore: fix JavaScript lint errors (issue #11209)
- regexp_require.js: add empty line between require statement and code in JSDoc examples (stdlib/jsdoc-example-require-spacing) - async/until/main.js: replace new Array() with array literal and push (stdlib/no-new-array) - strided/ops/sub/scripts/index.js: remove unused eslint-disable directive for node/shebang - constants/float64/pinf/lib/index.js: remove unused eslint-disable directive for stdlib/require-globals Resolves #11209
1 parent 33b4e79 commit 04af95a

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @default Number.POSITIVE_INFINITY
4949
* @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985}
5050
*/
51-
var FLOAT64_PINF = Number.POSITIVE_INFINITY; // eslint-disable-line stdlib/require-globals
51+
var FLOAT64_PINF = Number.POSITIVE_INFINITY;
5252

5353

5454
// EXPORTS //

lib/node_modules/@stdlib/math/strided/ops/sub/scripts/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// MODULES //

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@
3434
* var RE_REQUIRE = createRegExp();
3535
*
3636
* var bool = RE_REQUIRE.test( 'var foo = require( "foo" );' );
37+
*
3738
* // returns true
3839
*
3940
* @example
4041
* var RE_REQUIRE = createRegExp();
4142
*
4243
* var bool = RE_REQUIRE.test( 'var foo = require( "./foo.js" );' );
44+
*
4345
* // returns true
4446
*/
4547
function createRegExp() {

lib/node_modules/@stdlib/utils/async/until/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ function untilAsync( predicate, fcn, done, thisArg ) {
112112

113113
// Cache the most recent results...
114114
if ( arguments.length > 1 ) {
115-
args = new Array( arguments.length-1 );
115+
args = [];
116116
for ( i = 1; i < arguments.length; i++ ) {
117-
args[ i-1 ] = arguments[ i ];
117+
args.push( arguments[ i ] );
118118
}
119119
}
120120
// Run the test condition:

0 commit comments

Comments
 (0)