Skip to content

Commit cfacb01

Browse files
committed
Use defaults and resolve lint errors
1 parent 9277d7b commit cfacb01

File tree

12 files changed

+21
-14
lines changed

12 files changed

+21
-14
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker/test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,3 @@ tape( 'the function does not validate non-JSDoc comments', function test( t ) {
8484
}
8585
t.end();
8686
});
87-

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ var NON_VERBS = [
3636
'BLAS',
3737
'Alias',
3838
'Canvas',
39-
'Datasets'
39+
'Datasets',
40+
'Windows'
4041
];
4142
var DOPTS = {
4243
'sloppy': true,

lib/node_modules/@stdlib/_tools/eslint/rules/require-order/test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,3 @@ tape( 'the function does not validate other function calls', function test( t )
8484
}
8585
t.end();
8686
});
87-

lib/node_modules/@stdlib/_tools/makie/plugins/makie-examples/lib/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// MODULES //
2222

23+
var proc = require( 'process' );
2324
var spawn = require( 'child_process' ).spawn;
2425

2526

lib/node_modules/@stdlib/_tools/repl-txt/validate/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var Linter = require( './linter' );
23+
var Linter = require( './linter.js' );
2424

2525

2626
// VARIABLES //

lib/node_modules/@stdlib/assert/is-nonpositive-integer/test/test.object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tape( 'the function returns `false` if not provided a number', function test( t
5656
{},
5757
new Date(),
5858
/./,
59-
new RegExp( '.' ),
59+
new RegExp( '.' ), // eslint-disable-line prefer-regex-literals
6060
function noop() {}
6161
];
6262

lib/node_modules/@stdlib/assert/is-regexp/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var isRegExp = require( './../lib' );
2323
console.log( isRegExp( /.+/ ) );
2424
// => true
2525

26-
console.log( isRegExp( new RegExp( '.+' ) ) );
26+
console.log( isRegExp( new RegExp( '.+' ) ) ); // eslint-disable-line prefer-regex-literals
2727
// => true
2828

2929
console.log( isRegExp( '/.+/' ) );

lib/node_modules/@stdlib/assert/is-regexp/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tape( 'main export is a function', function test( t ) {
4444

4545
tape( 'the function returns `true` if provided a regular expression', function test( t ) {
4646
t.strictEqual( isRegExp( /\.+/ ), true, 'returns true' );
47-
t.strictEqual( isRegExp( new RegExp( '\\.+' ) ), true, 'returns true' );
47+
t.strictEqual( isRegExp( new RegExp( '\\.+' ) ), true, 'returns true' ); // eslint-disable-line prefer-regex-literals
4848
t.end();
4949
});
5050

lib/node_modules/@stdlib/error/tools/pkg2id/scripts/build.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function pkg2standalone( name ) {
6666
* @returns {string} identifier
6767
*/
6868
function generateID( prev ) {
69+
var cn;
6970
var i;
7071
var c;
7172
var n;
@@ -77,25 +78,29 @@ function generateID( prev ) {
7778
n = prev.length;
7879
for ( i = n-1; i >= 0; i-- ) {
7980
c = prev.charCodeAt( i );
81+
8082
// If the last character is a digit between 0 and 8, increment it:
8183
if ( c >= 48 && c <= 56 ) {
82-
return prev.substring( 0, i ) + String.fromCharCode( c+1 ) + prev.substring( i+1 );
84+
cn = String.fromCharCode( c+1 );
85+
return prev.substring( 0, i ) + cn + prev.substring( i+1 );
8386
}
8487
// If the last character is equal to 9, set it to 'A':
8588
if ( c === 57 ) {
8689
return prev.substring( 0, i ) + 'A' + prev.substring( i+1 );
8790
}
8891
// If the last character is a letter between `A` and `Y`, increment it:
8992
if ( c >= 65 && c <= 89 ) {
90-
return prev.substring( 0, i ) + String.fromCharCode( c+1 ) + prev.substring( i+1 );
93+
cn = String.fromCharCode( c+1 );
94+
return prev.substring( 0, i ) + cn + prev.substring( i+1 );
9195
}
9296
// If the last character is equal to `Z`, set it to `a`:
9397
if ( c === 90 ) {
9498
return prev.substring( 0, i ) + 'a' + prev.substring( i+1 );
9599
}
96100
// If the last character is a letter between `a` and `y`, increment it:
97101
if ( c >= 97 && c <= 121 ) {
98-
return prev.substring( 0, i ) + String.fromCharCode( c+1 ) + prev.substring( i+1 );
102+
cn = String.fromCharCode( c+1 )
103+
return prev.substring( 0, i ) + cn + prev.substring( i+1 );
99104
}
100105
// If the last character is equal to `z`, set it to `0`:
101106
if ( c === 122 ) {

lib/node_modules/@stdlib/regexp/native-function/test/test.main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@
2525
var tape = require( 'tape' );
2626
var Int8Array = require( '@stdlib/array/int8' );
2727
var Number = require( '@stdlib/number/ctor' );
28+
var Boolean = require( '@stdlib/boolean/ctor' );
29+
var Fcn = require( '@stdlib/function/ctor' );
2830
var reNativeFunction = require( './../lib/main.js' );
2931

3032

3133
// TESTS //
3234

3335
tape( 'main export is a function', function test( t ) {
3436
t.ok( true, __filename );
35-
t.strictEqual( reNativeFunction instanceof Function, true, 'main export is a function' );
37+
t.equal( typeof reNativeFunction, 'function', 'main export is a function' );
3638
t.end();
3739
});
3840

@@ -49,7 +51,7 @@ tape( 'the function returns a regular expression that matches native functions',
4951
Boolean,
5052
String,
5153
Number,
52-
Function,
54+
Fcn,
5355
RegExp,
5456
Number,
5557
Int8Array,

0 commit comments

Comments
 (0)