Skip to content

Commit

Permalink
chore: resolve lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Jul 24, 2023
1 parent 890b98b commit 34071a1
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 15 deletions.
8 changes: 6 additions & 2 deletions lib/node_modules/@stdlib/error/to-json/test/test.ctors.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ var CTORS = require( './../lib/ctors.js' );

// TESTS //

tape( 'error constructors are exposed via an exported array', function test( t ) {
tape( 'main export is a an array', function test( t ) {

This comment has been minimized.

Copy link
@kgryte

kgryte Jul 24, 2023

Member

s/a an/an/

This comment has been minimized.

Copy link
@Planeshifter

Planeshifter Jul 24, 2023

Author Member

Fixed.

t.ok( true, __filename );
t.strictEqual( isArray( CTORS ), true, 'export is an array' );
t.strictEqual( isArray( CTORS ), true, 'main export is an array' );
t.end();
});

tape( 'error constructors are exposed via an exported array', function test( t ) {
t.ok( CTORS.length > 0, 'has length > 0' );
t.end();
});
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/error/tools/msg2id/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var db;
*
* @example
* var v = msg2id( 'invalid option. `%s` option must be an array. Option: `%s`.' );
* // returns '8t'
* // returns '8Z'
*/
function msg2id( msg ) {
if ( !isString( msg ) ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/error/tools/pkg2id/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var PKG_TO_ID = require( './../data/data.json' );
*
* @example
* var v = pkg2id( '@stdlib/math/base/special/sin' );
* // returns '0H5'
* // returns '0YK'
*/
function pkg2id( pkg ) {
if ( !isString( pkg ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function generateID( prev ) {
}
// If the last character is a letter between `a` and `y`, increment it:
if ( c >= 97 && c <= 121 ) {
cn = String.fromCharCode( c+1 )
cn = String.fromCharCode( c+1 );
return prev.substring( 0, i ) + cn + prev.substring( i+1 );
}
// If the last character is equal to `z`, set it to `0`:
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/fs/read-file-list/lib/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var logger = require( 'debug' );
var isStringArray = require( '@stdlib/assert/is-string-array' ).primitives;
var isFunction = require( '@stdlib/assert/is-function' );
var copy = require( '@stdlib/utils/copy' );
var assign = require( '@stdlib/object/assign' );
var readFile = require( '@stdlib/fs/read-file' );
var format = require( '@stdlib/string/format' );
var config = require( './config.json' );
Expand Down Expand Up @@ -80,7 +80,7 @@ function readFileList( list, options, clbk ) {
opts = {};
cb = options;
} else {
opts = copy( options );
opts = assign( {}, options );
cb = clbk;
}
if ( !isFunction( cb ) ) {
Expand Down
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/iter/flow/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ var format = require( '@stdlib/string/format' );
*
* where `iterator` is an input iterator and `args` are additional iterator function arguments (if any).
*
*
* @param {Object} methods - an object mapping method names to iterator functions
* @throws {TypeError} must provide an object
* @throws {TypeError} object property values must be functions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

/* eslint-disable function-paren-newline */
/* eslint-disable function-paren-newline, function-call-argument-newline */

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/iter/pipeline/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

/* eslint-disable function-paren-newline */
/* eslint-disable function-paren-newline, function-call-argument-newline */

'use strict';

Expand Down
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/process/umask/lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ var MASK = 0|0; // asm type annotation
* - If provided a mask, the function sets the current mask and returns the previous process mask. Otherwise, the function returns the current process mask.
* - Browser environments do not support process masks. Hence, this function always returns either `0` or `u=rwx,g=rwx,o=rwx`.
*
*
* @param {(NonNegativeInteger|string)} [mask] - mask
* @param {Object} [options] - options
* @param {boolean} [options.symbolic] - boolean indicating whether to return a mask using symbolic notation
Expand Down
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/process/umask/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var fromSymbolic = require( './from_symbolic.js' );
*
* - If provided a mask, the function sets the current mask and returns the previous process mask. Otherwise, the function returns the current process mask.
*
*
* @param {(NonNegativeInteger|string)} [mask] - mask
* @param {Object} [options] - options
* @param {boolean} [options.symbolic] - boolean indicating whether to return a mask using symbolic notation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var parseDuration = require( './../lib' );
// TESTS //

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof parseDuration, 'function', 'main export is a function' );
t.end();
});
Expand Down
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/time/tic/lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ if ( ns.now ) {
*
* - Output format: `[seconds, nanoseconds]`.
*
*
* @private
* @returns {NumberArray} high-resolution time
*
Expand Down
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/time/tic/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ var proc = require( 'process' );
*
* - Output format: `[seconds, nanoseconds]`.
*
*
* @returns {NumberArray} high resolution time
*
* @example
Expand Down
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/time/toc/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ var tic = require( '@stdlib/time/tic' );
*
* - Output format: `[seconds, nanoseconds]`.
*
*
* @param {NonNegativeIntegerArray} time - high-resolution time
* @throws {TypeError} must provide a nonnegative integer array
* @throws {RangeError} input array must have length `2`
Expand Down

0 comments on commit 34071a1

Please sign in to comment.