Skip to content

Commit bdee45c

Browse files
chore: fix JavaScript lint errors
PR-URL: #8686 Closes: #8670 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 8f8680e commit bdee45c

File tree

3 files changed

+31
-30
lines changed
  • lib/node_modules/@stdlib

3 files changed

+31
-30
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/lib/main.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,26 @@ var rule;
3939

4040
// FUNCTIONS //
4141

42+
/**
43+
* Copies AST node location info.
44+
*
45+
* @private
46+
* @param {Object} loc - AST node location
47+
* @returns {Object} copied location info
48+
*/
49+
function copyLocationInfo( loc ) {
50+
return {
51+
'start': {
52+
'line': loc.start.line,
53+
'column': loc.start.column
54+
},
55+
'end': {
56+
'line': loc.end.line,
57+
'column': loc.end.column
58+
}
59+
};
60+
}
61+
4262
/**
4363
* Rule to prevent unnecessary indentation of Markdown list item bullets in JSDoc descriptions.
4464
*
@@ -112,26 +132,6 @@ function main( context ) {
112132
}
113133
}
114134

115-
/**
116-
* Copies AST node location info.
117-
*
118-
* @private
119-
* @param {Object} loc - AST node location
120-
* @returns {Object} copied location info
121-
*/
122-
function copyLocationInfo( loc ) {
123-
return {
124-
'start': {
125-
'line': loc.start.line,
126-
'column': loc.start.column
127-
},
128-
'end': {
129-
'line': loc.end.line,
130-
'column': loc.end.column
131-
}
132-
};
133-
}
134-
135135
/**
136136
* Reports an error message.
137137
*

lib/node_modules/@stdlib/repl/presentation/lib/commands/last_fragment.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@
3030
function command( pres ) {
3131
return onCommand;
3232

33+
/**
34+
* Callback invoked upon a `drain` event.
35+
*
36+
* @private
37+
*/
38+
function onDrain() {
39+
pres.lastFragment().show();
40+
}
41+
3342
/**
3443
* Jumps to the last fragment of the current slide.
3544
*
3645
* @private
3746
*/
3847
function onCommand() {
3948
pres._repl.once( 'drain', onDrain ); // eslint-disable-line no-underscore-dangle
40-
41-
/**
42-
* Callback invoked upon a `drain` event.
43-
*
44-
* @private
45-
*/
46-
function onDrain() {
47-
pres.lastFragment().show();
48-
}
4949
}
5050
}
5151

lib/node_modules/@stdlib/utils/timeit/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var copy = require( '@stdlib/utils/copy' );
2727
var cwd = require( '@stdlib/process/cwd' );
2828
var format = require( '@stdlib/string/format' );
2929
var nextTick = require( '@stdlib/utils/next-tick' );
30+
var nulls = require( '@stdlib/array/base/nulls' );
3031
var defaults = require( './defaults.json' );
3132
var validate = require( './validate.js' );
3233
var evaluate = require( './vm_evaluate.js' );
@@ -100,7 +101,7 @@ function timeit( code, options, clbk ) {
100101
if ( !isFunction( cb ) ) {
101102
throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', cb ) );
102103
}
103-
results = new Array( opts.repeats );
104+
results = nulls( opts.repeats );
104105
dir = cwd();
105106
idx = 0;
106107

0 commit comments

Comments
 (0)