diff --git a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js index 1a699af75341..d17d1eb29a19 100644 --- a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js +++ b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js @@ -60,7 +60,7 @@ var debug = logger( 'to-reference:sync' ); * * @example * var ref = toReference( '@press1992' ); -* // returns '...' +* // throws */ function toReference( id, options ) { var outFile; diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js index 428fa5746cd0..02386a537522 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js @@ -39,8 +39,8 @@ var rule; * @returns {Object} validators */ function main( context ) { - var source = context.getSourceCode(); var filename = context.getFilename(); + var source = context.getSourceCode(); return { 'Program': validate @@ -106,7 +106,7 @@ function main( context ) { if ( year !== expected ) { report( 'Expected year to be '+expected+' and not '+year, comment, expected ); } - } catch ( err ) { + } catch { // Do nothing if unable to determine the year the file was created (e.g., if the file is not tracked yet by `git`). } } diff --git a/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js b/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js index 92d3b1183a04..5482fdaf042a 100644 --- a/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js +++ b/lib/node_modules/@stdlib/array/generic/benchmark/benchmark.fast_elements_array_length_heuristic.js @@ -60,7 +60,8 @@ function copy1( arr ) { len = arr.length; if ( len > MAX_FAST_ELEMENTS_HEURISTIC ) { - out = new Array( MAX_FAST_ELEMENTS_HEURISTIC ); + out = []; + out.length = MAX_FAST_ELEMENTS_HEURISTIC; for ( i = 0; i < MAX_FAST_ELEMENTS_HEURISTIC; i++ ) { out[ i ] = arr[ i ]; } @@ -68,7 +69,8 @@ function copy1( arr ) { out.push( arr[ i ] ); } } else { - out = new Array( len ); + out = []; + out.length = len; for ( i = 0; i < len; i++ ) { out[ i ] = arr[ i ]; } @@ -89,7 +91,8 @@ function copy2( arr ) { var i; len = arr.length; - out = new Array( len ); + out = []; + out.length = len; for ( i = 0; i < len; i++ ) { out[ i ] = arr[ i ]; } diff --git a/lib/node_modules/@stdlib/plot/ctor/lib/props/line-style/line_styles.json b/lib/node_modules/@stdlib/plot/ctor/lib/props/line-style/line_styles.json index 94d97ef15ffa..0225224e6cfc 100644 --- a/lib/node_modules/@stdlib/plot/ctor/lib/props/line-style/line_styles.json +++ b/lib/node_modules/@stdlib/plot/ctor/lib/props/line-style/line_styles.json @@ -1,7 +1,7 @@ [ - "-", - "--", - ":", - "-.", - "none" -] + "-", + "--", + ":", + "-.", + "none" +] \ No newline at end of file