diff --git a/etc/eslint/.eslintrc.markdown.js b/etc/eslint/.eslintrc.markdown.js
index 3c2648c862a..2119487492e 100644
--- a/etc/eslint/.eslintrc.markdown.js
+++ b/etc/eslint/.eslintrc.markdown.js
@@ -146,6 +146,13 @@ eslint.rules[ 'no-unused-vars' ] = 'off';
*/
eslint.rules[ 'node/no-unpublished-require' ] = 'off';
+/**
+* Allow modern ECMAScript syntax.
+*
+* @private
+*/
+eslint.rules[ 'node/no-unsupported-features/es-syntax' ] = 'off';
+
// EXPORTS //
diff --git a/etc/eslint/overrides/index.js b/etc/eslint/overrides/index.js
index cb86b7a1f72..07a4b561670 100644
--- a/etc/eslint/overrides/index.js
+++ b/etc/eslint/overrides/index.js
@@ -158,7 +158,8 @@ var overrides = [
'stdlib/return-annotations-values': 'off',
'strict': 'off',
'vars-on-top': 'off',
- 'node/no-unpublished-require': 'off'
+ 'node/no-unpublished-require': 'off',
+ 'node/no-unsupported-features/es-syntax': 'off'
}
},
{
diff --git a/etc/eslint/rules/spellcheck.js b/etc/eslint/rules/spellcheck.js
index 8070c80b8c0..b8fc9bacf4a 100644
--- a/etc/eslint/rules/spellcheck.js
+++ b/etc/eslint/rules/spellcheck.js
@@ -83,15 +83,21 @@ rules[ '@cspell/spellchecker' ] = [ 'warn', {
'exponentiated',
'evalpoly',
'evalrational',
+ 'gmean',
+ 'hmean',
'hommel',
'iget',
+ 'indegree',
+ 'indegrees',
'iset',
+ 'isnan',
'logcdf',
'logit',
'logpdf',
'logpmf',
'lpad',
'ltrim',
+ 'memberof',
'napi',
'nargs',
'ncols',
@@ -102,12 +108,14 @@ rules[ '@cspell/spellchecker' ] = [ 'warn', {
'ndarrays',
'nrows',
'nsubmodes',
+ 'numel',
'pvalues',
'randn',
'randu',
'rpad',
'rtrim',
'significand',
+ 'significands',
'stdev',
'strided',
'stringifying',
diff --git a/lib/node_modules/@stdlib/_tools/benchmarks/browser-build/README.md b/lib/node_modules/@stdlib/_tools/benchmarks/browser-build/README.md
index 29512653502..c54e9427b5c 100644
--- a/lib/node_modules/@stdlib/_tools/benchmarks/browser-build/README.md
+++ b/lib/node_modules/@stdlib/_tools/benchmarks/browser-build/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var build = require( '@stdlib/_tools/benchmarks/browser-build' );
+const build = require( '@stdlib/_tools/benchmarks/browser-build' );
```
#### build( root, output, \[options,] clbk )
@@ -47,10 +47,10 @@ Given a `root` directory from which to search for benchmarks and an output direc
```javascript
-var cwd = require( '@stdlib/process/cwd' );
+const cwd = require( '@stdlib/process/cwd' );
-var root = cwd();
-var out = root;
+const root = cwd();
+const out = root;
build( root, out, clbk );
@@ -79,12 +79,12 @@ To provide an alternative glob pattern, set the `pattern` option.
```javascript
-var cwd = require( '@stdlib/process/cwd' );
+const cwd = require( '@stdlib/process/cwd' );
-var root = cwd();
-var out = root;
+const root = cwd();
+const out = root;
-var opts = {
+const opts = {
'pattern': '**/bench.js'
};
@@ -107,12 +107,12 @@ To mount a bundle on a URL path, set the `mount`option.
```javascript
-var cwd = require( '@stdlib/process/cwd' );
+const cwd = require( '@stdlib/process/cwd' );
-var root = cwd();
-var out = root;
+const root = cwd();
+const out = root;
-var opts = {
+const opts = {
'mount': '/www/public/'
};
@@ -153,17 +153,17 @@ function clbk( error, bool ) {
```javascript
-var join = require( 'path' ).join;
-var resolve = require( 'path' ).resolve;
-var mkdirp = require( 'mkdirp' ).sync;
-var build = require( '@stdlib/_tools/benchmarks/browser-build' );
+const join = require( 'path' ).join;
+const resolve = require( 'path' ).resolve;
+const mkdirp = require( 'mkdirp' ).sync;
+const build = require( '@stdlib/_tools/benchmarks/browser-build' );
-var root = join( __dirname, 'fixtures' );
-var out = resolve( __dirname, '../build' );
+const root = join( __dirname, 'fixtures' );
+const out = resolve( __dirname, '../build' );
mkdirp( out );
-var opts = {
+const opts = {
'pattern': 'index.js',
'bundle': 'benchmark_bundle.js',
'html': 'benchmarks.html'
diff --git a/lib/node_modules/@stdlib/_tools/benchmarks/bundle/README.md b/lib/node_modules/@stdlib/_tools/benchmarks/bundle/README.md
index 72a550869c8..5b00c004a5f 100644
--- a/lib/node_modules/@stdlib/_tools/benchmarks/bundle/README.md
+++ b/lib/node_modules/@stdlib/_tools/benchmarks/bundle/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var bundle = require( '@stdlib/_tools/benchmarks/bundle' );
+const bundle = require( '@stdlib/_tools/benchmarks/bundle' );
```
#### bundle( root, \[options,] clbk )
@@ -45,7 +45,7 @@ var bundle = require( '@stdlib/_tools/benchmarks/bundle' );
Given a `root` directory from which to search for benchmarks, bundle benchmarks into a single file using [browserify][browserify].
```javascript
-var cwd = require( '@stdlib/process/cwd' );
+const cwd = require( '@stdlib/process/cwd' );
bundle( cwd(), clbk );
@@ -65,9 +65,9 @@ The function accepts the following `options`:
To specify an output file path, set the `out` option.
```javascript
-var cwd = require( '@stdlib/process/cwd' );
+const cwd = require( '@stdlib/process/cwd' );
-var opts = {
+const opts = {
'out': '/foo/bar/bundle.js'
};
@@ -88,9 +88,9 @@ function clbk( error, bool ) {
To provide an alternative glob pattern, set the `pattern` option.
```javascript
-var cwd = require( '@stdlib/process/cwd' );
+const cwd = require( '@stdlib/process/cwd' );
-var opts = {
+const opts = {
'pattern': '**/bench.js'
};
@@ -127,12 +127,12 @@ function clbk( error, bundle ) {
```javascript
-var join = require( 'path' ).join;
-var bundle = require( '@stdlib/_tools/benchmarks/bundle' );
+const join = require( 'path' ).join;
+const bundle = require( '@stdlib/_tools/benchmarks/bundle' );
-var root = join( __dirname, 'fixtures' );
+const root = join( __dirname, 'fixtures' );
-var opts = {
+const opts = {
'pattern': '*.js'
};
diff --git a/lib/node_modules/@stdlib/_tools/benchmarks/html/README.md b/lib/node_modules/@stdlib/_tools/benchmarks/html/README.md
index ff5e510ca28..525e250bce9 100644
--- a/lib/node_modules/@stdlib/_tools/benchmarks/html/README.md
+++ b/lib/node_modules/@stdlib/_tools/benchmarks/html/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var build = require( '@stdlib/_tools/benchmarks/html' );
+const build = require( '@stdlib/_tools/benchmarks/html' );
```
#### build( bundle, \[options,] clbk )
@@ -45,7 +45,7 @@ var build = require( '@stdlib/_tools/benchmarks/html' );
Given a `bundle` URL from which to load a benchmarks bundle, returns an HTML file for running benchmarks.
```javascript
-var bundle = '/foo/bar/bundle.js';
+const bundle = '/foo/bar/bundle.js';
build( bundle, clbk );
@@ -65,9 +65,9 @@ The function accepts the following `options`:
To specify an output file path, set the `out` option.
```javascript
-var bundle = '/foo/bar/bundle.js';
+const bundle = '/foo/bar/bundle.js';
-var opts = {
+const opts = {
'out': '/foo/bar/benchmarks.html'
};
@@ -101,7 +101,7 @@ function clbk( error ) {
```javascript
-var build = require( '@stdlib/_tools/benchmarks/html' );
+const build = require( '@stdlib/_tools/benchmarks/html' );
build( '/foo/bar/bundle.js', onBuild );
diff --git a/lib/node_modules/@stdlib/_tools/bib/citation-reference/README.md b/lib/node_modules/@stdlib/_tools/bib/citation-reference/README.md
index 067c073f0d9..ce254718359 100644
--- a/lib/node_modules/@stdlib/_tools/bib/citation-reference/README.md
+++ b/lib/node_modules/@stdlib/_tools/bib/citation-reference/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var toReference = require( '@stdlib/_tools/bib/citation-reference' );
+const toReference = require( '@stdlib/_tools/bib/citation-reference' );
```
@@ -65,7 +65,7 @@ To use a specific bibliographic database, set the `database` option.
```javascript
-var opts = {
+const opts = {
'database': '/foo/bar/baz/bib.bib'
};
@@ -84,7 +84,7 @@ To use a particular [Citation Style Language][csl] (CSL), set the `csl` option.
```javascript
-var opts = {
+const opts = {
'csl': '/foo/bar/baz/style.csl'
};
@@ -105,7 +105,7 @@ Synchronously returns a reference corresponding to a citation identifier.
```javascript
-var ref = toReference.sync( '@press:1992' );
+const ref = toReference.sync( '@press:1992' );
// returns '...'
```
@@ -139,7 +139,7 @@ The method accepts the same `options` as [`toReference()`](#to-reference) above.
```javascript
-var toReference = require( '@stdlib/_tools/bib/citation-reference' );
+const toReference = require( '@stdlib/_tools/bib/citation-reference' );
/* bib.bib
@book{press:1992,
@@ -152,7 +152,7 @@ var toReference = require( '@stdlib/_tools/bib/citation-reference' );
}
*/
-var opts = {
+const opts = {
'database': 'bib.bib',
'csl': 'chicago-author-date.csl'
};
diff --git a/lib/node_modules/@stdlib/_tools/browserify/file-list/README.md b/lib/node_modules/@stdlib/_tools/browserify/file-list/README.md
index fac966675a5..0f580595577 100644
--- a/lib/node_modules/@stdlib/_tools/browserify/file-list/README.md
+++ b/lib/node_modules/@stdlib/_tools/browserify/file-list/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var bundle = require( '@stdlib/_tools/browserify/file-list' );
+const bundle = require( '@stdlib/_tools/browserify/file-list' );
```
#### bundle( files, \[dest,] clbk )
@@ -45,7 +45,7 @@ var bundle = require( '@stdlib/_tools/browserify/file-list' );
Bundles files into a single file using [browserify][browserify].
```javascript
-var files = [
+const files = [
'/foo/bar.js',
'/beep/boop.js'
];
@@ -63,7 +63,7 @@ function clbk( error, bundle ) {
To specify an output file path, provide a `dest` argument.
```javascript
-var files = [
+const files = [
'/foo/bar.js',
'/beep/boop.js'
];
@@ -102,11 +102,11 @@ function clbk( error ) {
```javascript
-var join = require( 'path' ).join;
-var bundle = require( '@stdlib/_tools/browserify/file-list' );
+const join = require( 'path' ).join;
+const bundle = require( '@stdlib/_tools/browserify/file-list' );
-var fpath = join( __dirname, 'examples', 'fixtures', 'index.js' );
-var files = [ fpath ];
+const fpath = join( __dirname, 'examples', 'fixtures', 'index.js' );
+const files = [ fpath ];
bundle( files, onBundle );
diff --git a/lib/node_modules/@stdlib/_tools/browserify/string/README.md b/lib/node_modules/@stdlib/_tools/browserify/string/README.md
index 541945ba8e2..3b806156739 100644
--- a/lib/node_modules/@stdlib/_tools/browserify/string/README.md
+++ b/lib/node_modules/@stdlib/_tools/browserify/string/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var bundle = require( '@stdlib/_tools/browserify/string' );
+const bundle = require( '@stdlib/_tools/browserify/string' );
```
#### bundle( str, \[dest,] \[options,] clbk )
@@ -45,7 +45,7 @@ var bundle = require( '@stdlib/_tools/browserify/string' );
Generates a bundle from a `string` using [browserify][browserify].
```javascript
-var str = 'module.exports = require( "url" );';
+const str = 'module.exports = require( "url" );';
bundle( str, clbk );
@@ -60,7 +60,7 @@ function clbk( error, bundle ) {
To specify an output file path, provide a `dest` argument.
```javascript
-var str = 'module.exports = require( "url" );';
+const str = 'module.exports = require( "url" );';
bundle( str, './bundle.js', clbk );
@@ -106,11 +106,11 @@ The function accepts any [browserify][browserify] `option`, as well as the follo
```javascript
-var bundle = require( '@stdlib/_tools/browserify/string' );
+const bundle = require( '@stdlib/_tools/browserify/string' );
-var str = 'module.exports = require( "path" ).join;';
+const str = 'module.exports = require( "path" ).join;';
-var opts = {
+const opts = {
'exportName': 'beep'
};
diff --git a/lib/node_modules/@stdlib/_tools/bundle/pkg-list/README.md b/lib/node_modules/@stdlib/_tools/bundle/pkg-list/README.md
index ca6bae3ccc8..bb58e9b20f9 100644
--- a/lib/node_modules/@stdlib/_tools/bundle/pkg-list/README.md
+++ b/lib/node_modules/@stdlib/_tools/bundle/pkg-list/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var bundle = require( '@stdlib/_tools/bundle/pkg-list' );
+const bundle = require( '@stdlib/_tools/bundle/pkg-list' );
```
#### bundle( pkgs, \[options,] clbk )
@@ -45,12 +45,12 @@ var bundle = require( '@stdlib/_tools/bundle/pkg-list' );
Bundles a list of packages into a single file.
```javascript
-var pkgs = [
+const pkgs = [
'@stdlib/math/base/special/erf',
'@stdlib/math/base/special/gamma'
];
-var opts = {
+const opts = {
'bundler': 'browserify',
'paths': [
'/path/to/stdlib/packages'
@@ -108,16 +108,16 @@ The function accepts the following `options` which are specific to [browserify][
```javascript
-var pkgNames = require( '@stdlib/_tools/pkgs/names' );
-var bundle = require( '@stdlib/_tools/bundle/pkg-list' );
+const pkgNames = require( '@stdlib/_tools/pkgs/names' );
+const bundle = require( '@stdlib/_tools/bundle/pkg-list' );
-var fopts = {
+const fopts = {
'pattern': '**/assert/**/package.json',
'ignore': [
'**/_**/**' // ignore "private" packages
]
};
-var bopts = {
+const bopts = {
'namespace': 'tree',
'exportName': '@stdlib'
};
diff --git a/lib/node_modules/@stdlib/_tools/changelog/generate/README.md b/lib/node_modules/@stdlib/_tools/changelog/generate/README.md
index 007011a6cb8..20f0207b140 100644
--- a/lib/node_modules/@stdlib/_tools/changelog/generate/README.md
+++ b/lib/node_modules/@stdlib/_tools/changelog/generate/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var generate = require( '@stdlib/_tools/changelog/generate' );
+const generate = require( '@stdlib/_tools/changelog/generate' );
```
#### generate( pkg\[, releaseType] )
@@ -35,7 +35,7 @@ var generate = require( '@stdlib/_tools/changelog/generate' );
Generates a Markdown formatted changelog for a specified package.
```javascript
-var changelog = generate( '@stdlib/assert/contains' );
+const changelog = generate( '@stdlib/assert/contains' );
// returns {...}
```
@@ -47,7 +47,7 @@ The function returns an object with the following properties:
To generate a changelog for an upcoming release, provide a valid release type as the second argument.
```javascript
-var changelog = generate( '@stdlib/assert/contains', 'patch' );
+let changelog = generate( '@stdlib/assert/contains', 'patch' );
// returns {...}
changelog = generate( '@stdlib/assert/contains', 'minor' );
@@ -81,14 +81,14 @@ The following release types are supported:
## Examples
```javascript
-var generate = require( '@stdlib/_tools/changelog/generate' );
+const generate = require( '@stdlib/_tools/changelog/generate' );
// Generate a changelog for a non-namespace package:
-var changelog = generate( '@stdlib/utils/curry' );
-var content = changelog.content;
+let changelog = generate( '@stdlib/utils/curry' );
+let content = changelog.content;
// returns '...'
-var releaseType = changelog.releaseType;
+let releaseType = changelog.releaseType;
// returns null
// Generate a changelog for a new release:
diff --git a/lib/node_modules/@stdlib/_tools/changelog/parse-commits/README.md b/lib/node_modules/@stdlib/_tools/changelog/parse-commits/README.md
index 9a6ea4f2dd0..a1ec1fa210a 100644
--- a/lib/node_modules/@stdlib/_tools/changelog/parse-commits/README.md
+++ b/lib/node_modules/@stdlib/_tools/changelog/parse-commits/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var parseCommits = require( '@stdlib/_tools/changelog/parse-commits' );
+const parseCommits = require( '@stdlib/_tools/changelog/parse-commits' );
```
#### parseCommits( \[options] )
@@ -35,7 +35,7 @@ var parseCommits = require( '@stdlib/_tools/changelog/parse-commits' );
Parses commit messages into conventional changelog objects.
```javascript
-var commits = parseCommits();
+const commits = parseCommits();
// returns [...]
```
@@ -60,9 +60,9 @@ The function accepts the following `options`:
## Examples
```javascript
-var parseCommits = require( '@stdlib/_tools/changelog/parse-commits' );
+const parseCommits = require( '@stdlib/_tools/changelog/parse-commits' );
-var commits = parseCommits();
+let commits = parseCommits();
// returns [...]
commits = parseCommits({
diff --git a/lib/node_modules/@stdlib/_tools/changelog/recommend-version-bump/README.md b/lib/node_modules/@stdlib/_tools/changelog/recommend-version-bump/README.md
index d59f051ff7f..365319b1c4a 100644
--- a/lib/node_modules/@stdlib/_tools/changelog/recommend-version-bump/README.md
+++ b/lib/node_modules/@stdlib/_tools/changelog/recommend-version-bump/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var recommendVersionBump = require( '@stdlib/_tools/changelog/recommend-version-bump' );
+const recommendVersionBump = require( '@stdlib/_tools/changelog/recommend-version-bump' );
```
#### recommendVersionBump( commits )
@@ -35,7 +35,7 @@ var recommendVersionBump = require( '@stdlib/_tools/changelog/recommend-version-
Recommends a version bump based on [parsed commit messages][@stdlib/_tools/changelog/parse-commits].
```javascript
-var commits = [
+let commits = [
{
'type': 'fix',
'notes': []
@@ -48,7 +48,7 @@ var commits = [
}]
}
];
-var version = recommendVersionBump( commits );
+let version = recommendVersionBump( commits );
// returns 'major'
commits = [
@@ -83,11 +83,11 @@ The function returns a string indicating the recommended version bump or `null`
## Examples
```javascript
-var parseCommits = require( '@stdlib/_tools/changelog/parse-commits' );
-var recommendVersionBump = require( '@stdlib/_tools/changelog/recommend-version-bump' );
+const parseCommits = require( '@stdlib/_tools/changelog/parse-commits' );
+const recommendVersionBump = require( '@stdlib/_tools/changelog/recommend-version-bump' );
-var commits = parseCommits();
-var version = recommendVersionBump( commits );
+let commits = parseCommits();
+let version = recommendVersionBump( commits );
// returns
commits = [];
diff --git a/lib/node_modules/@stdlib/_tools/docs/www/benchmark-bundles/README.md b/lib/node_modules/@stdlib/_tools/docs/www/benchmark-bundles/README.md
index 28dfb223e5d..352f7ceca1c 100644
--- a/lib/node_modules/@stdlib/_tools/docs/www/benchmark-bundles/README.md
+++ b/lib/node_modules/@stdlib/_tools/docs/www/benchmark-bundles/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var build = require( '@stdlib/_tools/docs/www/benchmark-bundles' );
+const build = require( '@stdlib/_tools/docs/www/benchmark-bundles' );
```
#### build( dest, \[options,] clbk )
@@ -61,7 +61,7 @@ The function accepts the following `options`:
To search from an alternative directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': '/foo/bar/baz'
};
@@ -78,7 +78,7 @@ function done( error ) {
To provide an alternative package inclusion filter, set the `packages_pattern` option.
```javascript
-var opts = {
+const opts = {
'packages_pattern': '**/foo/**/package.json'
};
@@ -97,7 +97,7 @@ To exclude package matches, set the `ignore` option.
```javascript
-var opts = {
+const opts = {
'ignore': [
'node_modules/**',
'build/**',
@@ -138,14 +138,14 @@ function done( error ) {
```javascript
-var mkdir = require( 'fs' ).mkdirSync;
-var resolve = require( 'path' ).resolve;
-var exists = require( '@stdlib/fs/exists' ).sync;
-var build = require( '@stdlib/_tools/docs/www/benchmark-bundles' );
+const mkdir = require( 'fs' ).mkdirSync;
+const resolve = require( 'path' ).resolve;
+const exists = require( '@stdlib/fs/exists' ).sync;
+const build = require( '@stdlib/_tools/docs/www/benchmark-bundles' );
-var dpath = resolve( __dirname, 'build' );
+const dpath = resolve( __dirname, 'build' );
-var opts = {
+const opts = {
'dir': './lib/node_modules',
'packages_pattern': '**/base/special/sin/package.json',
'ignore': [
diff --git a/lib/node_modules/@stdlib/_tools/docs/www/readme-database/README.md b/lib/node_modules/@stdlib/_tools/docs/www/readme-database/README.md
index d811ae50b7c..fb44875616d 100644
--- a/lib/node_modules/@stdlib/_tools/docs/www/readme-database/README.md
+++ b/lib/node_modules/@stdlib/_tools/docs/www/readme-database/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var create = require( '@stdlib/_tools/docs/www/readme-database' );
+const create = require( '@stdlib/_tools/docs/www/readme-database' );
```
#### create( \[options,] clbk )
@@ -59,7 +59,7 @@ To search from an alternative directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': '/foo/bar/baz'
};
@@ -78,7 +78,7 @@ To provide an alternative include filter, set the `pattern` option.
```javascript
-var opts = {
+const opts = {
'pattern': '**/foo/**/package.json'
};
@@ -97,7 +97,7 @@ To exclude matches, set the `ignore` option.
```javascript
-var opts = {
+const opts = {
'ignore': [
'node_modules/**',
'build/**',
@@ -120,7 +120,7 @@ To have internal URLs of the READMEs link to relative (or absolute) documentatio
```javascript
-var opts = {
+const opts = {
'base': '/docs/api/v0.0.90/'
};
@@ -157,9 +157,9 @@ function done( error, db ) {
```javascript
-var create = require( '@stdlib/_tools/docs/www/readme-database' );
+const create = require( '@stdlib/_tools/docs/www/readme-database' );
-var opts = {
+const opts = {
'dir': './lib/node_modules',
'ignore': [
'benchmark/**',
diff --git a/lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/README.md b/lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/README.md
index 98d62bcf77b..208abfc80a0 100644
--- a/lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/README.md
+++ b/lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var build = require( '@stdlib/_tools/docs/www/readme-fragment-file-tree' );
+const build = require( '@stdlib/_tools/docs/www/readme-fragment-file-tree' );
```
#### build( dest, \[options,] clbk )
@@ -59,7 +59,7 @@ To search from an alternative directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': '/foo/bar/baz'
};
@@ -78,7 +78,7 @@ To provide an alternative include filter, set the `pattern` option.
```javascript
-var opts = {
+const opts = {
'pattern': '**/foo/**/package.json'
};
@@ -97,7 +97,7 @@ To exclude matches, set the `ignore` option.
```javascript
-var opts = {
+const opts = {
'ignore': [
'node_modules/**',
'build/**',
@@ -120,7 +120,7 @@ To have internal URLs of the READMEs link to relative (or absolute) documentatio
```javascript
-var opts = {
+const opts = {
'base': '/docs/api/v0.0.90/'
};
@@ -158,14 +158,14 @@ function done( error ) {
```javascript
-var mkdir = require( 'fs' ).mkdirSync;
-var resolve = require( 'path' ).resolve;
-var exists = require( '@stdlib/fs/exists' ).sync;
-var build = require( '@stdlib/_tools/docs/www/readme-fragment-file-tree' );
+const mkdir = require( 'fs' ).mkdirSync;
+const resolve = require( 'path' ).resolve;
+const exists = require( '@stdlib/fs/exists' ).sync;
+const build = require( '@stdlib/_tools/docs/www/readme-fragment-file-tree' );
-var dpath = resolve( __dirname, 'build' );
+const dpath = resolve( __dirname, 'build' );
-var opts = {
+const opts = {
'dir': './lib/node_modules',
'ignore': [
'benchmark/**',
diff --git a/lib/node_modules/@stdlib/_tools/docs/www/test-bundles/README.md b/lib/node_modules/@stdlib/_tools/docs/www/test-bundles/README.md
index 66ccbedaf18..637b927e9cd 100644
--- a/lib/node_modules/@stdlib/_tools/docs/www/test-bundles/README.md
+++ b/lib/node_modules/@stdlib/_tools/docs/www/test-bundles/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var build = require( '@stdlib/_tools/docs/www/test-bundles' );
+const build = require( '@stdlib/_tools/docs/www/test-bundles' );
```
#### build( dest, \[options,] clbk )
@@ -61,7 +61,7 @@ The function accepts the following `options`:
To search from an alternative directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': '/foo/bar/baz'
};
@@ -78,7 +78,7 @@ function done( error ) {
To provide an alternative package inclusion filter, set the `packages_pattern` option.
```javascript
-var opts = {
+const opts = {
'packages_pattern': '**/foo/**/package.json'
};
@@ -97,7 +97,7 @@ To exclude package matches, set the `ignore` option.
```javascript
-var opts = {
+const opts = {
'ignore': [
'node_modules/**',
'build/**',
@@ -138,14 +138,14 @@ function done( error ) {
```javascript
-var mkdir = require( 'fs' ).mkdirSync;
-var resolve = require( 'path' ).resolve;
-var exists = require( '@stdlib/fs/exists' ).sync;
-var build = require( '@stdlib/_tools/docs/www/test-bundles' );
+const mkdir = require( 'fs' ).mkdirSync;
+const resolve = require( 'path' ).resolve;
+const exists = require( '@stdlib/fs/exists' ).sync;
+const build = require( '@stdlib/_tools/docs/www/test-bundles' );
-var dpath = resolve( __dirname, 'build' );
+const dpath = resolve( __dirname, 'build' );
-var opts = {
+const opts = {
'dir': './lib/node_modules',
'packages_pattern': '**/base/special/sin/package.json',
'ignore': [
diff --git a/lib/node_modules/@stdlib/_tools/doctest/compare-values/README.md b/lib/node_modules/@stdlib/_tools/doctest/compare-values/README.md
index 5e1166a387e..05dc3f680e3 100644
--- a/lib/node_modules/@stdlib/_tools/doctest/compare-values/README.md
+++ b/lib/node_modules/@stdlib/_tools/doctest/compare-values/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var compareValues = require( '@stdlib/_tools/doctest/compare-values' );
+const compareValues = require( '@stdlib/_tools/doctest/compare-values' );
```
#### compareValues( actual, expected )
@@ -35,7 +35,7 @@ var compareValues = require( '@stdlib/_tools/doctest/compare-values' );
Checks whether a return value is equal to the value of a return annotation. In case of a mismatch, the function returns an error message; otherwise, it returns `null`.
```javascript
-var out = compareValues( 4.126, '~4.13' );
+let out = compareValues( 4.126, '~4.13' );
// returns null
out = compareValues( 4.126e-13, '~4.13e-13' );
@@ -65,7 +65,7 @@ out = compareValues( 'Hello World', '"Hello World"' );
```javascript
-var compareValues = require( '@stdlib/_tools/doctest/compare-values' );
+const compareValues = require( '@stdlib/_tools/doctest/compare-values' );
console.log( compareValues( true, 'false' ) );
// => 'Displayed return value is `false`, but function returns `true` instead'
diff --git a/lib/node_modules/@stdlib/_tools/doctest/create-annotation-value/README.md b/lib/node_modules/@stdlib/_tools/doctest/create-annotation-value/README.md
index f647f76db21..fbf8fcf5d02 100644
--- a/lib/node_modules/@stdlib/_tools/doctest/create-annotation-value/README.md
+++ b/lib/node_modules/@stdlib/_tools/doctest/create-annotation-value/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var createAnnotationValue = require( '@stdlib/_tools/doctest/create-annotation-value' );
+const createAnnotationValue = require( '@stdlib/_tools/doctest/create-annotation-value' );
```
#### createAnnotationValue( actual\[, options] )
@@ -35,7 +35,7 @@ var createAnnotationValue = require( '@stdlib/_tools/doctest/create-annotation-v
Creates a doctest return annotation value.
```javascript
-var out = createAnnotationValue( 1/3 );
+const out = createAnnotationValue( 1/3 );
// returns '~0.333'
```
@@ -49,7 +49,7 @@ The function accepts the following `options`:
By default, the function does not include a decimal point for integer-valued return annotation values. To include a decimal point, set the `decimal` option.
```javascript
-var out = createAnnotationValue( 2 );
+let out = createAnnotationValue( 2 );
// returns '2'
out = createAnnotationValue( 2, {
@@ -61,11 +61,11 @@ out = createAnnotationValue( 2, {
By default, the function displays up to four elements for arrays. To include a decimal point, set the `decimal` option. For longer arrays, it uses `...` notation to skip over array elements. To change the number of array elements to be displayed, set the `numel` option.
```javascript
-var arr = [ 1, 2, 3, 4, 5, 6, 7 ];
-var out = createAnnotationValue( arr );
+const arr = [ 1, 2, 3, 4, 5, 6, 7 ];
+let out = createAnnotationValue( arr );
// returns '[ 1, 2, ..., 6, 7 ]'
-var opts = {
+const opts = {
'numel': 6
};
out = createAnnotationValue( arr, opts );
@@ -75,22 +75,22 @@ out = createAnnotationValue( arr, opts );
Real-valued numbers are by default rounded to up to three decimal points. To round to a different number of decimal digits, set the `precision` option.
```javascript
-var opts = {
+const opts = {
'precision': 5
};
-var out = createAnnotationValue( 1/3, opts );
+const out = createAnnotationValue( 1/3, opts );
// returns '~0.33333'
```
To only include the type in the created annotation, set the `type` option.
```javascript
-var opts = {
+const opts = {
'type': true
};
-var out = createAnnotationValue( 1/3, opts );
+const out = createAnnotationValue( 1/3, opts );
// returns ''
```
@@ -111,9 +111,9 @@ var out = createAnnotationValue( 1/3, opts );
```javascript
-var createAnnotationValue = require( '@stdlib/_tools/doctest/create-annotation-value' );
+const createAnnotationValue = require( '@stdlib/_tools/doctest/create-annotation-value' );
-var out = createAnnotationValue( true );
+let out = createAnnotationValue( true );
// returns 'true'
out = createAnnotationValue( 1/3 );
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/README.md
index c7932bdbad6..fa9bf5a643e 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rules = require( '@stdlib/_tools/eslint/rules' );
+const rules = require( '@stdlib/_tools/eslint/rules' );
```
#### rules
@@ -41,7 +41,7 @@ var rules = require( '@stdlib/_tools/eslint/rules' );
Project-specific [ESLint rules][eslint-rules].
```javascript
-var eslint = rules;
+const eslint = rules;
// returns {...}
```
@@ -188,8 +188,8 @@ var eslint = rules;
```javascript
-var getKeys = require( '@stdlib/utils/keys' );
-var rules = require( '@stdlib/_tools/eslint/rules' );
+const getKeys = require( '@stdlib/utils/keys' );
+const rules = require( '@stdlib/_tools/eslint/rules' );
console.log( getKeys( rules ) );
```
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/capitalized-comments/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/capitalized-comments/README.md
index 1b0fadb72b6..b0fd2e61192 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/capitalized-comments/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/capitalized-comments/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/capitalized-comments' );
+const rule = require( '@stdlib/_tools/eslint/rules/capitalized-comments' );
```
#### rule
@@ -46,10 +46,8 @@ var rule = require( '@stdlib/_tools/eslint/rules/capitalized-comments' );
```javascript
function square( x ) {
- var out;
-
// square the number:
- out = x*x;
+ const out = x*x;
return out;
}
```
@@ -58,10 +56,8 @@ function square( x ) {
```javascript
function square( x ) {
- var out;
-
// Square the number:
- out = x*x; // x^2
+ const out = x*x; // x^2
return out;
}
```
@@ -79,14 +75,12 @@ To allow uncapitalized words at the beginning of a comment, set the `whitelist`
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/capitalized-comments' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/capitalized-comments' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'function pow2( x ) {',
' var out;',
'',
@@ -98,7 +92,7 @@ code = [
linter.defineRule( 'capitalized-comments', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'capitalized-comments': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-marker/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-marker/README.md
index 12efb048cb1..9822fda4d50 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-marker/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-marker/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/doctest-marker' );
+const rule = require( '@stdlib/_tools/eslint/rules/doctest-marker' );
```
#### rule
@@ -45,7 +45,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/doctest-marker' );
```javascript
-var x = 3.0;
+const x = 3.0;
// => 3.0
console.log( 'Hello World' );
@@ -57,7 +57,7 @@ console.log( 'Hello World' );
**Good**:
```javascript
-var x = 3.0;
+const x = 3.0;
// returns 3.0
console.log( 'Hello World' );
@@ -75,14 +75,12 @@ console.log( 'Hello World' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/doctest-marker' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/doctest-marker' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'var isLowercase = require( \'./../lib\' );',
'',
'console.log( isLowercase( \'hello\' ) );',
@@ -94,7 +92,7 @@ code = [
linter.defineRule( 'doctest-marker', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'doctest-marker': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-quote-props/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-quote-props/README.md
index 2c4d5c305fc..b2f44f304ab 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-quote-props/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-quote-props/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/doctest-quote-props' );
+const rule = require( '@stdlib/_tools/eslint/rules/doctest-quote-props' );
```
#### rule
@@ -45,14 +45,14 @@ var rule = require( '@stdlib/_tools/eslint/rules/doctest-quote-props' );
```javascript
-var copy = require( '@stdlib/utils/copy' );
+const copy = require( '@stdlib/utils/copy' );
-var value = {
+const value = {
'a': 1,
'b': true,
'c': [ 1, 2, 3 ]
};
-var out = copy( value );
+const out = copy( value );
/* returns
{
a: 1,
@@ -65,14 +65,14 @@ var out = copy( value );
**Good**:
```javascript
-var copy = require( '@stdlib/utils/copy' );
+const copy = require( '@stdlib/utils/copy' );
-var value = {
+const value = {
'a': 1,
'b': true,
'c': [ 1, 2, 3 ]
};
-var out = copy( value );
+const out = copy( value );
/* returns
{
'a': 1,
@@ -93,14 +93,12 @@ var out = copy( value );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/doctest-quote-props' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/doctest-quote-props' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
' var target = {',
' \'a\': \'beep\'',
' };',
@@ -115,7 +113,7 @@ code = [
linter.defineRule( 'doctest-quote-props', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'doctest-quote-props': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/README.md
index 67ce39f7dc6..5526f3dd502 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/doctest' );
+const rule = require( '@stdlib/_tools/eslint/rules/doctest' );
```
#### rule
@@ -45,7 +45,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/doctest' );
```javascript
-var x = 3.0;
+const x = 3.0;
// returns 2.0
console.log( 'Hello World' );
@@ -55,7 +55,7 @@ console.log( 'Hello World' );
**Good**:
```javascript
-var x = 3.0;
+const x = 3.0;
// returns 3.0
console.log( 'Hello World' );
@@ -75,14 +75,12 @@ Node.js script files, detected by looking for the appropriate shebang at the beg
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/doctest' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/doctest' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'var isLowercase = require( \'@stdlib/assert/is-lowercase\' );',
'',
'console.log( isLowercase( \'hello\' ) );',
@@ -94,7 +92,7 @@ code = [
linter.defineRule( 'doctest', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'doctest': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js
index 6cc2a3389b6..7cb3d42b1c5 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js
@@ -127,6 +127,9 @@ function main( context ) {
}
sourceCode = replace( source.text, RE_JSDOC, '' );
sourceCode = replace( sourceCode, RE_ESLINT_INLINE, '\n' );
+
+ // Replace variable declarations to avoid redeclaration errors:
+ sourceCode = replace( sourceCode, /(const|let) /g, 'var ' );
filename = context.getFilename();
dir = dirname( filename );
/**
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/empty-line-before-comment/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/empty-line-before-comment/README.md
index dac81c4ccb6..1dc48ce98d2 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/empty-line-before-comment/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/empty-line-before-comment/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/empty-line-before-comment' );
+const rule = require( '@stdlib/_tools/eslint/rules/empty-line-before-comment' );
```
#### rule
@@ -76,14 +76,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/empty-line-before-comment' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/empty-line-before-comment' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'function square( x ) {',
' var out;',
' // Square the number:',
@@ -94,7 +92,7 @@ code = [
linter.defineRule( 'empty-line-before-comment', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'empty-line-before-comment': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/first-unit-test/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/first-unit-test/README.md
index 3911c773788..c6d954c5480 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/first-unit-test/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/first-unit-test/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/first-unit-test' );
+const rule = require( '@stdlib/_tools/eslint/rules/first-unit-test' );
```
#### rule
@@ -45,8 +45,8 @@ var rule = require( '@stdlib/_tools/eslint/rules/first-unit-test' );
```javascript
-var tape = require( 'tape' );
-var identity = require( '@stdlib/utils/identity-function' );
+const tape = require( 'tape' );
+const identity = require( '@stdlib/utils/identity-function' );
tape( 'the function works correctly', function test( t ) {
t.strictEqual( identity( true ), true, 'returns true' );
@@ -59,8 +59,8 @@ tape( 'the function works correctly', function test( t ) {
```javascript
-var tape = require( 'tape' );
-var identity = require( '@stdlib/utils/identity-function' );
+const tape = require( 'tape' );
+const identity = require( '@stdlib/utils/identity-function' );
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
@@ -82,15 +82,12 @@ tape( 'main export is a function', function test( t ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/first-unit-test' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/first-unit-test' );
-var linter = new Linter();
-var result;
-var config;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'// MODULES //',
'',
'var tape = require( \'tape\' );',
@@ -107,12 +104,12 @@ code = [
linter.defineRule( 'first-unit-test', rule );
-config = {
+const config = {
'rules': {
'first-unit-test': 'error'
}
};
-result = linter.verify( code, config, {
+const result = linter.verify( code, config, {
'filename': 'test.factory.js'
});
console.log( result );
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/README.md
index 14d5c46aa35..79fda28cd16 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation' );
```
#### rule
@@ -93,15 +93,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-blockquote-indentation' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -124,7 +122,7 @@ code = [
linter.defineRule( 'jsdoc-blockquote-indentation', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-blockquote-indentation': [ 'error', 2 ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style/README.md
index f6778231663..8809fecf99c 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style' );
```
#### rule
@@ -101,15 +101,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-character-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -133,7 +131,7 @@ code = [
linter.defineRule( 'jsdoc-checkbox-character-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-checkbox-character-style': [
'error',
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent/README.md
index 9b457b85fe0..1138b88e968 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-checkbox-content-indent' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -122,7 +120,7 @@ code = [
linter.defineRule( 'jsdoc-checkbox-content-indent', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-checkbox-content-indent': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-code-block-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-code-block-style/README.md
index 8dc0dc0f71a..73da6bd014d 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-code-block-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-code-block-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-code-block-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-code-block-style' );
```
#### rule
@@ -95,15 +95,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-code-block-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-code-block-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -126,7 +124,7 @@ code = [
linter.defineRule( 'jsdoc-code-block-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-code-block-style': [ 'error', 'fenced' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-case/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-case/README.md
index 318f2349152..75717609bae 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-case/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-case/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-case' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-case' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-case' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-case' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep [boop][Boop].',
'*',
@@ -122,7 +120,7 @@ code = [
linter.defineRule( 'jsdoc-definition-case', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-definition-case': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-spacing/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-spacing/README.md
index 3884a15c6a7..4fb0099ebe4 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-spacing/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-definition-spacing/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-spacing' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-spacing' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-spacing' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-definition-spacing' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep [boop][beep boop].',
'*',
@@ -122,7 +120,7 @@ code = [
linter.defineRule( 'jsdoc-definition-spacing', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-definition-spacing': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point/README.md
index e86923fa992..419a5e6c207 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point' );
```
#### rule
@@ -63,7 +63,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point' );
* var v = round( NaN );
* // returns NaN
*/
-var round = Math.round;
+const round = Math.round;
```
**Good**:
@@ -89,7 +89,7 @@ var round = Math.round;
* var v = round( NaN );
* // returns NaN
*/
-var round = Math.round;
+const round = Math.round;
```
@@ -103,14 +103,12 @@ var round = Math.round;
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-decimal-point' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'*',
@@ -131,7 +129,7 @@ code = [
linter.defineRule( 'jsdoc-doctest-decimal-point', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-doctest-decimal-point': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-marker/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-marker/README.md
index 9286713162a..b83b4af5162 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-marker/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-marker/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-marker' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-marker' );
```
#### rule
@@ -97,14 +97,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-marker' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-marker' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'*',
@@ -125,7 +123,7 @@ code = [
linter.defineRule( 'jsdoc-doctest-marker', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-doctest-marker': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props/README.md
index 083c1990169..401e83637c4 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props' );
```
#### rule
@@ -45,7 +45,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props' );
```javascript
-var hasOwnProp = require( '@stdlib/assert/has-own-property' );
+const hasOwnProp = require( '@stdlib/assert/has-own-property' );
/**
* Converts the first letter of each object key to uppercase.
@@ -84,7 +84,7 @@ function capitalizeKeys( obj ) {
**Good**:
```javascript
-var hasOwnProp = require( '@stdlib/assert/has-own-property' );
+const hasOwnProp = require( '@stdlib/assert/has-own-property' );
/**
* Converts the first letter of each object key to uppercase.
@@ -131,14 +131,12 @@ function capitalizeKeys( obj ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest-quote-props' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Copies or deep clones a value to an arbitrary depth.',
'*',
@@ -176,7 +174,7 @@ code = [
linter.defineRule( 'jsdoc-doctest-quote-props', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-doctest-quote-props': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/README.md
index aa44f21c084..142d8a08559 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-doctest/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest' );
```
#### rule
@@ -95,14 +95,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-doctest' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'*',
@@ -123,7 +121,7 @@ code = [
linter.defineRule( 'jsdoc-doctest', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-doctest': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker/README.md
index 17b76c1ed55..94dba3bfa19 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker' );
```
#### rule
@@ -89,15 +89,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-emphasis-marker' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep *boop*.',
'*',
@@ -117,7 +115,7 @@ code = [
linter.defineRule( 'jsdoc-emphasis-marker', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-emphasis-marker': [ 'error', '_' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example/README.md
index 3d70b612a8c..ac095179869 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example' );
```
#### rule
@@ -57,7 +57,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example
* var v = ceil( 9.99999 );
* // returns 10.0
*/
-var ceil = require( '@stdlib/math/base/special/ceil' );
+const ceil = require( '@stdlib/math/base/special/ceil' );
```
**Good**:
@@ -77,7 +77,7 @@ var ceil = require( '@stdlib/math/base/special/ceil' );
* var v = ceil( 9.99999 );
* // returns 10.0
*/
-var ceil = require( '@stdlib/math/base/special/ceil' );
+const ceil = require( '@stdlib/math/base/special/ceil' );
```
@@ -91,14 +91,12 @@ var ceil = require( '@stdlib/math/base/special/ceil' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-empty-line-before-example' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Rounds a numeric value toward negative infinity.',
'*',
@@ -119,7 +117,7 @@ code = [
linter.defineRule( 'jsdoc-empty-line-before-example', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-empty-line-before-example': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag/README.md
index e4b8a30d8a6..6ee4ed91926 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag' );
```
#### rule
@@ -97,15 +97,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
````javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-flag' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -129,7 +127,7 @@ code = [
linter.defineRule( 'jsdoc-fenced-code-flag', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-fenced-code-flag': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker/README.md
index d02527570ea..a96fb6fac8d 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker' );
```
#### rule
@@ -97,15 +97,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep *boop*.',
'*',
@@ -129,7 +127,7 @@ code = [
linter.defineRule( 'jsdoc-fenced-code-marker', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-fenced-code-marker': [ 'error', '`' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-final-definition/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-final-definition/README.md
index d43f759796c..cc255684594 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-final-definition/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-final-definition/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-final-definition' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-final-definition' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-final-definition' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-final-definition' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep [boop][boop].',
'*',
@@ -128,7 +126,7 @@ code = [
linter.defineRule( 'jsdoc-final-definition', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-final-definition': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-first-heading-level/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-first-heading-level/README.md
index 7de7d361553..a00aa52d282 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-first-heading-level/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-first-heading-level/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-first-heading-level' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-first-heading-level' );
```
#### rule
@@ -99,15 +99,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-first-heading-level' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-first-heading-level' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -131,7 +129,7 @@ code = [
linter.defineRule( 'jsdoc-first-heading-level', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-first-heading-level': [ 'error', 2 ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces/README.md
index 5c79853374f..76339de1233 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces' );
```
#### rule
@@ -93,15 +93,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-hard-break-spaces' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -124,7 +122,7 @@ code = [
linter.defineRule( 'jsdoc-hard-break-spaces', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-hard-break-spaces': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-increment/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-increment/README.md
index 0052e19d7db..8281de6a7b1 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-increment/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-increment/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-increment' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-increment' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-increment' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-increment' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -132,7 +130,7 @@ code = [
linter.defineRule( 'jsdoc-heading-increment', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-heading-increment': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-style/README.md
index e9188ebc3c9..ec8b244a783 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-heading-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-style' );
```
#### rule
@@ -98,15 +98,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-heading-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -136,7 +134,7 @@ code = [
linter.defineRule( 'jsdoc-heading-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-heading-style': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence/README.md
index 3b5f00243d3..7c66e423ef3 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence' );
```
#### rule
@@ -89,14 +89,12 @@ To allow uncapitalized words at the beginning of a JSDoc description, set the `w
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* squares a number.',
'* ',
@@ -114,7 +112,7 @@ code = [
linter.defineRule( 'jsdoc-leading-description-sentence', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-leading-description-sentence': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/README.md
index 4cb98dbd196..cb1a0f10de3 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-license-header-year' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-license-header-year' );
```
#### rule
@@ -51,15 +51,14 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-license-header-year' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-license-header-year' );
+const join = require( 'path' ).join;
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-license-header-year' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* @license Apache-2.0',
'*',
@@ -83,12 +82,12 @@ code = [
linter.defineRule( 'jsdoc-license-header-year', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-license-header-year': 'error'
}
}, {
- 'filename': join( __dirname, '..', '..', 'README.md' )
+ 'filename': join( __dirname, '..', '..', 'README.md' )
});
console.log( result );
/* =>
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-linebreak-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-linebreak-style/README.md
index cf8a1129c0b..c2391866cf6 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-linebreak-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-linebreak-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-linebreak-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-linebreak-style' );
```
#### rule
@@ -101,15 +101,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-linebreak-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-linebreak-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -132,7 +130,7 @@ code = [
linter.defineRule( 'jsdoc-linebreak-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-linebreak-style': [ 'error', 'unix' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-link-title-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-link-title-style/README.md
index f4bad8b29a1..671862e0230 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-link-title-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-link-title-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-link-title-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-link-title-style' );
```
#### rule
@@ -97,15 +97,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-link-title-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-link-title-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -130,7 +128,7 @@ code = [
linter.defineRule( 'jsdoc-link-title-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-link-title-style': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/README.md
index af179c7007f..cc5b7d8d86a 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -122,7 +120,7 @@ code = [
linter.defineRule( 'jsdoc-list-item-bullet-indent', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-list-item-bullet-indent': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent/README.md
index ec17e98c292..bd48ad690ac 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent' );
```
#### rule
@@ -97,15 +97,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-content-indent' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -130,7 +128,7 @@ code = [
linter.defineRule( 'jsdoc-list-item-content-indent', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-list-item-content-indent': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-indent/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-indent/README.md
index eca86b8fae8..d645328b9bc 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-indent/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-indent/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-indent' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-indent' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-indent' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-indent' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -128,7 +126,7 @@ code = [
linter.defineRule( 'jsdoc-list-item-indent', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-list-item-indent': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md
index 618a8ec3f22..c88339ec35e 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing' );
```
#### rule
@@ -121,15 +121,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -154,7 +152,7 @@ code = [
linter.defineRule( 'jsdoc-list-item-spacing', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-list-item-spacing': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/README.md
index 5bca8a94dd8..36cdd7cdf03 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-main-export' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-main-export' );
```
#### rule
@@ -87,14 +87,12 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-main-export' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-main-export' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-main-export' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Tests if a value is an array.',
'*',
@@ -113,7 +111,7 @@ code = [
linter.defineRule( 'jsdoc-main-export', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-main-export': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-markdown-remark/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-markdown-remark/README.md
index 43dea465621..68059b55479 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-markdown-remark/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-markdown-remark/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-markdown-remark' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-markdown-remark' );
```
#### rule
@@ -91,18 +91,15 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var remarkLint = require( 'remark-lint' );
-var noDuplicateHeadings = require( 'remark-lint-no-duplicate-headings' );
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-markdown-remark' );
+const Linter = require( 'eslint' ).Linter;
+const remarkLint = require( 'remark-lint' );
+const noDuplicateHeadings = require( 'remark-lint-no-duplicate-headings' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-markdown-remark' );
-var linter = new Linter();
-var config;
-var result;
-var code;
+const linter = new Linter();
// Generate our source code containing a single lint error (a duplicate heading):
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -150,7 +147,7 @@ code = [
].join( '\n' );
// Create a remark configuration:
-config = {
+const config = {
'plugins': [
[ remarkLint ],
[ noDuplicateHeadings, [ 'error' ] ]
@@ -161,7 +158,7 @@ config = {
linter.defineRule( 'jsdoc-markdown-remark', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-markdown-remark': [ 'error', {
'config': config
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length/README.md
index 7ac966b0e05..49b2e1bcd95 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length' );
```
#### rule
@@ -42,7 +42,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length' )
**Bad**:
-
+
```javascript
/**
@@ -50,7 +50,6 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length' )
*
* ## Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula
*
-*
* @returns {string} a value
*
* @example
@@ -64,13 +63,14 @@ function beep() {
**Good**:
+
+
```javascript
/**
* Beep boop.
*
* ## Lorem ipsum dolor sit amet, consectetuer adipiscing elit
*
-*
* @returns {string} a value
*
* @example
@@ -95,15 +95,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-heading-length' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -131,7 +129,7 @@ code = [
linter.defineRule( 'jsdoc-maximum-heading-length', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-maximum-heading-length': [ 'error', 30 ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length/README.md
index f58eab6261d..b4e0a0b5d46 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length' );
```
#### rule
@@ -42,7 +42,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length' );
**Bad**:
-
+
```javascript
/**
@@ -61,6 +61,8 @@ function beep() {
**Good**:
+
+
```javascript
/**
* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
@@ -89,15 +91,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-maximum-line-length' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Too long when rule is configured with a maximum line width of `10`...',
'*',
@@ -118,7 +118,7 @@ code = [
linter.defineRule( 'jsdoc-maximum-line-length', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-maximum-line-length': [ 'error', 10 ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol/README.md
index 970002ddf81..60e628b37fd 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-auto-link-without-protocol' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -122,7 +120,7 @@ code = [
linter.defineRule( 'jsdoc-no-auto-link-without-protocol', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-auto-link-without-protocol': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker/README.md
index c7025181b39..2003a851cbf 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-blockquote-without-marker' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -128,7 +126,7 @@ code = [
linter.defineRule( 'jsdoc-no-blockquote-without-marker', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-blockquote-without-marker': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines/README.md
index ca97f8ea2b5..9d6a16319d2 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines' );
```
#### rule
@@ -96,15 +96,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-consecutive-blank-lines' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -129,7 +127,7 @@ code = [
linter.defineRule( 'jsdoc-no-consecutive-blank-lines', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-consecutive-blank-lines': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions/README.md
index a4ce2c9cedf..14c466034c9 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions' );
```
#### rule
@@ -92,15 +92,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-definitions' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* [Beep][beep] [boop][beep].',
'*',
@@ -124,7 +122,7 @@ code = [
linter.defineRule( 'jsdoc-no-duplicate-definitions', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-duplicate-definitions': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section/README.md
index 61cad049938..c5829a277d4 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section' );
```
#### rule
@@ -103,15 +103,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings-in-section' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -137,7 +135,7 @@ code = [
linter.defineRule( 'jsdoc-no-duplicate-headings-in-section', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-duplicate-headings-in-section': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings/README.md
index 19d56fd8883..e5edda47c2a 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings' );
```
#### rule
@@ -103,15 +103,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-headings' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -140,7 +138,7 @@ code = [
linter.defineRule( 'jsdoc-no-duplicate-headings', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-duplicate-headings': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags/README.md
index be266d67901..078bdc21368 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags' );
```
#### rule
@@ -89,7 +89,7 @@ function square( x ) {
*
* @param {number} x - input number
* @returns {number} x squared
- *
+*
* @example
* var y = square( 2.0 );
* // returns 4.0
@@ -114,14 +114,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-duplicate-tags' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'* ',
@@ -140,7 +138,7 @@ code = [
linter.defineRule( 'jsdoc-no-duplicate-tags', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-duplicate-tags': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading/README.md
index 2bb4c9bca5b..04a7381f87d 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-emphasis-as-heading' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -132,7 +130,7 @@ code = [
linter.defineRule( 'jsdoc-no-emphasis-as-heading', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-emphasis-as-heading': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-empty-url/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-empty-url/README.md
index c7b10260b94..1ddb488ee46 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-empty-url/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-empty-url/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-empty-url' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-empty-url' );
```
#### rule
@@ -87,15 +87,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-empty-url' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-empty-url' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep [boop]().',
'*',
@@ -115,7 +113,7 @@ code = [
linter.defineRule( 'jsdoc-no-empty-url', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-empty-url': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent/README.md
index 5b854c3cdc0..50011adf9cc 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-content-indent' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -132,7 +130,7 @@ code = [
linter.defineRule( 'jsdoc-no-heading-content-indent', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-heading-content-indent': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent/README.md
index 494e0e5a91a..e54c487d3be 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-indent' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -132,7 +130,7 @@ code = [
linter.defineRule( 'jsdoc-no-heading-indent', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-heading-indent': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph/README.md
index 9d030aae9ab..082279e47df 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-like-paragraph' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -127,7 +125,7 @@ code = [
linter.defineRule( 'jsdoc-no-heading-like-paragraph', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-heading-like-paragraph': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/README.md
index 9a6ccbb9e93..c4a46beb8b5 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation' );
```
#### rule
@@ -97,15 +97,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-heading-punctuation' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -134,7 +132,7 @@ code = [
linter.defineRule( 'jsdoc-no-heading-punctuation', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-heading-punctuation': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-html/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-html/README.md
index b90ac045063..2788bfa5001 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-html/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-html/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-html' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-html' );
```
#### rule
@@ -93,15 +93,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-html' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-html' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -123,7 +121,7 @@ code = [
linter.defineRule( 'jsdoc-no-html', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-html': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding/README.md
index 11dc8712e89..013850ad055 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding' );
```
#### rule
@@ -87,15 +87,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-inline-padding' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep: _ boop _.',
'*',
@@ -115,7 +113,7 @@ code = [
linter.defineRule( 'jsdoc-no-inline-padding', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-inline-padding': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls/README.md
index 19acd2a415b..c3a202e76eb 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-literal-urls' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -127,7 +125,7 @@ code = [
linter.defineRule( 'jsdoc-no-literal-urls', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-literal-urls': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines/README.md
index 115803527f3..5005418616a 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines' );
```
#### rule
@@ -113,15 +113,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-missing-blank-lines' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -144,7 +142,7 @@ code = [
linter.defineRule( 'jsdoc-no-missing-blank-lines', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-missing-blank-lines': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines/README.md
index 8f7a427d47e..224171e2269 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines' );
```
#### rule
@@ -89,15 +89,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-blank-lines' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -123,7 +121,7 @@ code = [
linter.defineRule( 'jsdoc-no-multiple-blank-lines', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-multiple-blank-lines': [ 'error', 2 ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings/README.md
index 0738a67d30e..34aa934c689 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings' );
```
#### rule
@@ -107,15 +107,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-multiple-toplevel-headings' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -139,7 +137,7 @@ code = [
linter.defineRule( 'jsdoc-no-multiple-toplevel-headings', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-multiple-toplevel-headings': [ 'error', 2 ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent/README.md
index e8be21fe68c..4360ed8946c 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-paragraph-content-indent' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -132,7 +130,7 @@ code = [
linter.defineRule( 'jsdoc-no-paragraph-content-indent', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-paragraph-content-indent': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url/README.md
index 43c974e4481..d4c8a6c1e13 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-reference-like-url' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep [boop](beep).',
'*',
@@ -121,7 +119,7 @@ code = [
linter.defineRule( 'jsdoc-no-reference-like-url', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-reference-like-url': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars/README.md
index 62836848ac4..446ef994485 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars' );
```
#### rule
@@ -97,15 +97,13 @@ function beep() {
````javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shell-dollars' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -130,7 +128,7 @@ code = [
linter.defineRule( 'jsdoc-no-shell-dollars', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-shell-dollars': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image/README.md
index 7b605502995..92f44ecfa7b 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-image' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep ![boop].',
'*',
@@ -121,7 +119,7 @@ code = [
linter.defineRule( 'jsdoc-no-shortcut-reference-image', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-shortcut-reference-image': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link/README.md
index 49b76381a67..8d97fecfc43 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-shortcut-reference-link' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep [boop].',
'*',
@@ -121,7 +119,7 @@ code = [
linter.defineRule( 'jsdoc-no-shortcut-reference-link', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-shortcut-reference-link': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks/README.md
index c3fc38e8ebb..3aab5d6da88 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks' );
```
#### rule
@@ -87,15 +87,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
' * Beep boop.',
' *',
@@ -115,7 +113,7 @@ code = [
linter.defineRule( 'jsdoc-no-space-aligned-asterisks', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-space-aligned-asterisks': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation/README.md
index c5433e2f5d0..30be31d0467 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation' );
```
#### rule
@@ -93,15 +93,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-table-indentation' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Squares a number.',
'*',
@@ -125,7 +123,7 @@ code = [
linter.defineRule( 'jsdoc-no-table-indentation', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-table-indentation': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-tabs/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-tabs/README.md
index 7c89fdb131b..65efe911970 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-tabs/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-tabs/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-tabs' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-tabs' );
```
#### rule
@@ -95,15 +95,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-tabs' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-tabs' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -126,7 +124,7 @@ code = [
linter.defineRule( 'jsdoc-no-tabs', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-tabs': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references/README.md
index 525b3929b16..1a7c2951497 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references' );
```
#### rule
@@ -89,15 +89,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-undefined-references' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep [boop][boop].',
'*',
@@ -117,7 +115,7 @@ code = [
linter.defineRule( 'jsdoc-no-undefined-references', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-undefined-references': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions/README.md
index d8ebcf7c3e5..23863b132b3 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions' );
```
#### rule
@@ -91,15 +91,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-unused-definitions' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -121,7 +119,7 @@ code = [
linter.defineRule( 'jsdoc-no-unused-definitions', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-no-unused-definitions': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/README.md
index 4615ba9e041..6ed6a6ce452 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style' );
```
#### rule
@@ -97,15 +97,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -136,7 +134,7 @@ code = [
linter.defineRule( 'jsdoc-ordered-list-marker-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-ordered-list-marker-style': [ 'error', '.' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value/README.md
index e6e712d6ba1..30c2c9f0b0a 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value' );
```
#### rule
@@ -99,15 +99,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep *boop*.',
'*',
@@ -130,7 +128,7 @@ code = [
linter.defineRule( 'jsdoc-ordered-list-marker-value', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-ordered-list-marker-value': [ 'error', 'ordered' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-private-annotation/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-private-annotation/README.md
index 99a06766781..cc67bb41aa5 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-private-annotation/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-private-annotation/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-private-annotation' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-private-annotation' );
```
#### rule
@@ -122,13 +122,12 @@ module.exports = wrap;
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-private-annotation' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-private-annotation' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = [
+const code = [
'/**',
'* Comparator function for sorting characters in ascending order.',
'*',
@@ -153,7 +152,7 @@ var code = [
linter.defineRule( 'jsdoc-private-annotation', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-private-annotation': [ 'error' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags/README.md
index 118bcb7062a..46579d6e2c1 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags' );
```
#### rule
@@ -142,13 +142,12 @@ function incrspace( x1, x2 ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = [
+const code = [
' /**',
' * Attempts to parse a string as JSON.',
' *',
@@ -179,7 +178,7 @@ var code = [
linter.defineRule( 'jsdoc-require-throws-tags', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-require-throws-tags': [ 'error' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-rule-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-rule-style/README.md
index 08dfe99dea2..60ca87570c9 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-rule-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-rule-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-rule-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-rule-style' );
```
#### rule
@@ -56,7 +56,6 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-rule-style' );
*
* Asterisks
*
-*
* @returns {string} a value
*
* @example
@@ -84,7 +83,6 @@ function beep() {
*
* Asterisks
*
-*
* @returns {string} a value
*
* @example
@@ -109,15 +107,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-rule-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-rule-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep boop.',
'*',
@@ -141,7 +137,7 @@ code = [
linter.defineRule( 'jsdoc-rule-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-rule-style': [ 'error', '***' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-strong-marker/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-strong-marker/README.md
index 5f03a5be0d2..05bf053b19b 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-strong-marker/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-strong-marker/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-strong-marker' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-strong-marker' );
```
#### rule
@@ -89,15 +89,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-strong-marker' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-strong-marker' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep __boop__.',
'*',
@@ -117,7 +115,7 @@ code = [
linter.defineRule( 'jsdoc-strong-marker', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-strong-marker': [ 'error', '*' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding/README.md
index 173b4f42ac6..0eccfa98848 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding' );
```
#### rule
@@ -99,15 +99,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-cell-padding' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Squares a number.',
'*',
@@ -131,7 +129,7 @@ code = [
linter.defineRule( 'jsdoc-table-cell-padding', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-table-cell-padding': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment/README.md
index 2844383272c..8b4ab6b8e4f 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment' );
```
#### rule
@@ -93,15 +93,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipe-alignment' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Squares a number.',
'*',
@@ -125,7 +123,7 @@ code = [
linter.defineRule( 'jsdoc-table-pipe-alignment', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-table-pipe-alignment': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipes/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipes/README.md
index a4e5ad6ca8d..949aa85504e 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipes/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-table-pipes/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipes' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipes' );
```
#### rule
@@ -93,15 +93,13 @@ function beep() {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipes' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-table-pipes' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Squares a number.',
'*',
@@ -125,7 +123,7 @@ code = [
linter.defineRule( 'jsdoc-table-pipes', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-table-pipes': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-names/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-names/README.md
index 8153ef43e37..88475109cd6 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-names/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-names/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-names' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-names' );
```
#### rule
@@ -110,14 +110,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-names' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-names' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'* ',
@@ -135,7 +133,7 @@ code = [
linter.defineRule( 'jsdoc-tag-names', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-tag-names': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-order/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-order/README.md
index 33ae8e85e16..386fb5a6099 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-order/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-order/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-order' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-order' );
```
#### rule
@@ -116,14 +116,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-order' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-order' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'* ',
@@ -141,7 +139,7 @@ code = [
linter.defineRule( 'jsdoc-tag-order', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-tag-order': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-spacing/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-spacing/README.md
index 9e7afe61b4e..f4be66af67e 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-spacing/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-spacing/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-spacing' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-spacing' );
```
#### rule
@@ -91,14 +91,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-spacing' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-tag-spacing' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'* ',
@@ -116,7 +114,7 @@ code = [
linter.defineRule( 'jsdoc-tag-spacing', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-tag-spacing': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/README.md
index a6b229783d3..480b3b11b18 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-typedef-typos' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-typedef-typos' );
```
#### rule
@@ -89,14 +89,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-typedef-typos' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-typedef-typos' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/**',
'* Squares a number.',
'* ',
@@ -114,7 +112,7 @@ code = [
linter.defineRule( 'jsdoc-typedef-typos', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-typedef-typos': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style/README.md
index d63b717b2dd..0efa97e733e 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style' );
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style' );
```
#### rule
@@ -95,15 +95,13 @@ The [rule][eslint-rules] may be configured using the same options as supported b
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/jsdoc-unordered-list-marker-style' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
// Generate our source code:
-code = [
+const code = [
'/**',
'* Beep *boop*.',
'*',
@@ -126,7 +124,7 @@ code = [
linter.defineRule( 'jsdoc-unordered-list-marker-style', rule );
// Lint the code:
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'jsdoc-unordered-list-marker-style': [ 'error', '-' ]
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/module-exports-last/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/module-exports-last/README.md
index 343675f791e..ef61d8d6e07 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/module-exports-last/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/module-exports-last/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/module-exports-last' );
+const rule = require( '@stdlib/_tools/eslint/rules/module-exports-last' );
```
#### rule
@@ -42,25 +42,27 @@ var rule = require( '@stdlib/_tools/eslint/rules/module-exports-last' );
**Bad**:
-
+
```javascript
-var gammaln = require( '@stdlib/math/base/special/gammaln' );
+const gammaln = require( '@stdlib/math/base/special/gammaln' );
module.exports = exports = {
'gammaln': gammaln
};
-var beta = require( '@stdlib/math/base/special/beta' );
+const beta = require( '@stdlib/math/base/special/beta' );
exports.beta = beta;
```
**Good**:
+
+
```javascript
-var gammaln = require( '@stdlib/math/base/special/gammaln' );
-var betainc = require( '@stdlib/math/base/special/betainc' );
+const gammaln = require( '@stdlib/math/base/special/gammaln' );
+const betainc = require( '@stdlib/math/base/special/betainc' );
exports.gammaln = gammaln;
exports.betainc = betainc;
@@ -77,14 +79,12 @@ exports.betainc = betainc;
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/module-exports-last' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/module-exports-last' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'var betainc = require( \'./betainc.js\' );',
'',
'module.exports = betainc;',
@@ -96,7 +96,7 @@ code = [
linter.defineRule( 'module-exports-last', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'module-exports-last': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/README.md
index 3c71c94624d..eda1f6d9612 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/namespace-export-all' );
+const rule = require( '@stdlib/_tools/eslint/rules/namespace-export-all' );
```
#### rule
@@ -53,12 +53,12 @@ Assuming a `@stdlib/constants/array` folder with `max-array-length` and `max-typ
// MODULES //
-var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
+const setReadOnly = require( '@stdlib/utils/define-read-only-property' );
// MAIN //
-var ns = {};
+const ns = {};
/**
* @name MAX_ARRAY_LENGTH
@@ -80,12 +80,12 @@ setReadOnly( ns, 'MAX_ARRAY_LENGTH', require( '@stdlib/constants/array/max-array
// MODULES //
-var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
+const setReadOnly = require( '@stdlib/utils/define-read-only-property' );
// MAIN //
-var ns = {};
+const ns = {};
/**
* @name MAX_ARRAY_LENGTH
@@ -119,16 +119,13 @@ setReadOnly( ns, 'MAX_TYPED_ARRAY_LENGTH', require( '@stdlib/constants/array/max
```javascript
-var join = require( 'path' ).join;
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/namespace-export-all' );
+const join = require( 'path' ).join;
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/namespace-export-all' );
-var linter = new Linter();
-var result;
-var config;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/*',
'* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.',
'*/',
@@ -159,12 +156,12 @@ code = [
linter.defineRule( 'namespace-export-all', rule );
-config = {
+const config = {
'rules': {
'namespace-export-all': 'error'
}
};
-result = linter.verify( code, config, {
+const result = linter.verify( code, config, {
'filename': join( __dirname, 'fixtures', 'lib', 'index.js' )
});
console.log( result );
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-index-order/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-index-order/README.md
index cf1dacc2b39..bf4bc690887 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-index-order/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/namespace-index-order/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/namespace-index-order' );
+const rule = require( '@stdlib/_tools/eslint/rules/namespace-index-order' );
```
#### rule
@@ -53,12 +53,12 @@ var rule = require( '@stdlib/_tools/eslint/rules/namespace-index-order' );
// MODULES //
-var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
+const setReadOnly = require( '@stdlib/utils/define-read-only-property' );
// MAIN //
-var ns = {};
+const ns = {};
/**
* @name MAX_TYPED_ARRAY_LENGTH
@@ -90,12 +90,12 @@ setReadOnly( ns, 'MAX_ARRAY_LENGTH', require( '@stdlib/constants/array/max-array
// MODULES //
-var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
+const setReadOnly = require( '@stdlib/utils/define-read-only-property' );
// MAIN //
-var ns = {};
+const ns = {};
/**
* @name MAX_ARRAY_LENGTH
@@ -129,14 +129,12 @@ setReadOnly( ns, 'MAX_TYPED_ARRAY_LENGTH', require( '@stdlib/constants/array/max
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/namespace-index-order' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/namespace-index-order' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/*',
'* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.',
'*/',
@@ -176,7 +174,7 @@ code = [
linter.defineRule( 'namespace-index-order', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'namespace-index-order': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-array/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-array/README.md
index 8562903e442..bac23487533 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-array/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-array/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/new-cap-array' );
+const rule = require( '@stdlib/_tools/eslint/rules/new-cap-array' );
```
#### rule
@@ -45,13 +45,13 @@ var rule = require( '@stdlib/_tools/eslint/rules/new-cap-array' );
```javascript
-var arr = Array( 101 );
+const arr = Array( 101 );
```
**Good**:
```javascript
-var arr = new Array( 101 );
+const arr = new Array( 101 );
```
@@ -65,17 +65,16 @@ var arr = new Array( 101 );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/new-cap-array' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/new-cap-array' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var arr = Array( 10 );';
+const code = 'var arr = Array( 10 );';
linter.defineRule( 'new-cap-array', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'new-cap-array': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-error/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-error/README.md
index 6c24636612b..77adba0964e 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-error/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-error/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/new-cap-error' );
+const rule = require( '@stdlib/_tools/eslint/rules/new-cap-error' );
```
#### rule
@@ -45,13 +45,13 @@ var rule = require( '@stdlib/_tools/eslint/rules/new-cap-error' );
```javascript
-var err = Error( 'error message' );
+const err = Error( 'error message' );
```
**Good**:
```javascript
-var err = new Error( 'error message' );
+const err = new Error( 'error message' );
```
@@ -65,17 +65,16 @@ var err = new Error( 'error message' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/new-cap-error' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/new-cap-error' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var err = Error( \'invoked without new\' );';
+const code = 'var err = Error( \'invoked without new\' );';
linter.defineRule( 'new-cap-error', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'new-cap-error': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-regexp/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-regexp/README.md
index b4268c3b389..2ab290bb8d3 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-regexp/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/new-cap-regexp/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/new-cap-regexp' );
+const rule = require( '@stdlib/_tools/eslint/rules/new-cap-regexp' );
```
#### rule
@@ -42,16 +42,18 @@ var rule = require( '@stdlib/_tools/eslint/rules/new-cap-regexp' );
**Bad**:
-
+
```javascript
-var re = RegExp( '[0-9]' );
+const re = RegExp( '[0-9]' );
```
**Good**:
+
+
```javascript
-var re = new RegExp( '[0-9]' );
+const re = new RegExp( '[0-9]' );
```
@@ -65,17 +67,16 @@ var re = new RegExp( '[0-9]' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/new-cap-regexp' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/new-cap-regexp' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var re = RegExp( \'ab+c\', \'i\' );';
+const code = 'var re = RegExp( \'ab+c\', \'i\' );';
linter.defineRule( 'new-cap-regexp', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'new-cap-regexp': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-math/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-math/README.md
index e0aa9268145..2d7683c396b 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-math/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-math/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-builtin-math' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-builtin-math' );
```
#### rule
@@ -45,15 +45,15 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-builtin-math' );
```javascript
-var out = Math.exp( 2.0 );
+const out = Math.exp( 2.0 );
// returns ~7.389
```
**Good**:
```javascript
-var exp = require( '@stdlib/math/base/special/exp' );
-var out = exp( 2.0 );
+const exp = require( '@stdlib/math/base/special/exp' );
+const out = exp( 2.0 );
// returns ~7.389
```
@@ -68,18 +68,16 @@ var out = exp( 2.0 );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-builtin-math' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-builtin-math' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = 'var y = Math.sqrt( 9.0 );';
+const code = 'var y = Math.sqrt( 9.0 );';
linter.defineRule( 'no-builtin-math', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-builtin-math': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-exports/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-exports/README.md
index 0fe9ac69c3d..3cf699d0f68 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-exports/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-exports/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-exports' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-exports' );
```
#### rule
@@ -45,8 +45,8 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-exports' );
```javascript
-var normal = require( '@stdlib/random/base/normal' );
-var beta = require( '@stdlib/random/base/beta' );
+const normal = require( '@stdlib/random/base/normal' );
+const beta = require( '@stdlib/random/base/beta' );
// EXPORTS //
@@ -60,13 +60,13 @@ module.exports = {
**Good**:
```javascript
-var normal = require( '@stdlib/random/base/normal' );
-var beta = require( '@stdlib/random/base/beta' );
+const normal = require( '@stdlib/random/base/normal' );
+const beta = require( '@stdlib/random/base/beta' );
// VARIABLES //
-var ns = {
+const ns = {
'normal': normal,
'beta': beta
};
@@ -88,14 +88,12 @@ module.exports = ns;
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-exports' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-exports' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'function fun() {',
' return 3.14;',
'}',
@@ -104,7 +102,7 @@ code = [
linter.defineRule( 'no-dynamic-exports', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-dynamic-exports': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/README.md
index 46d86c16d0a..f951a3c1811 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-dynamic-require/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-require' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-require' );
```
#### rule
@@ -45,14 +45,14 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-require' );
```javascript
-var pkg = '@stdlib/math/base/special/betainc';
-var betainc = require( pkg );
+const pkg = '@stdlib/math/base/special/betainc';
+const betainc = require( pkg );
```
**Good**:
```javascript
-var betainc = require( '@stdlib/math/base/special/betainc' );
+const betainc = require( '@stdlib/math/base/special/betainc' );
```
@@ -66,21 +66,19 @@ var betainc = require( '@stdlib/math/base/special/betainc' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-require' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-dynamic-require' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'var pkg = \'@stdlib/math/base/special/betainc\';',
'var betainc = require( pkg );'
].join( '\n' );
linter.defineRule( 'no-dynamic-require', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-dynamic-require': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/README.md
index f35be1d3a15..add13b4b5a8 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-empty-comments' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-empty-comments' );
```
#### rule
@@ -87,14 +87,12 @@ function square( x ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-empty-comments' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-empty-comments' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'function pow2( x ) {',
' var out;',
'',
@@ -106,7 +104,7 @@ code = [
linter.defineRule( 'no-empty-comments', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-empty-comments': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/README.md
index 74c5f768743..b1f463ea3d5 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-immediate-require/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-immediate-require' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-immediate-require' );
```
#### rule
@@ -45,15 +45,15 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-immediate-require' );
```javascript
-var debug = require( 'debug' )( 'stdlib' );
+const debug = require( 'debug' )( 'stdlib' );
```
**Good**:
```javascript
-var logger = require( 'debug' );
+const logger = require( 'debug' );
-var debug = logger( 'stdlib' );
+const debug = logger( 'stdlib' );
```
@@ -67,18 +67,16 @@ var debug = logger( 'stdlib' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-immediate-require' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-immediate-require' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = 'var pdf = require( \'@stdlib/stats/base/dists/normal/pdf\' ).factory( 0.0, 1.0 );';
+const code = 'var pdf = require( \'@stdlib/stats/base/dists/normal/pdf\' ).factory( 0.0, 1.0 );';
linter.defineRule( 'no-immediate-require', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-immediate-require': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-internal-require/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-internal-require/README.md
index 9cc4b61ef0e..0c009230641 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-internal-require/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-internal-require/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-internal-require' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-internal-require' );
```
#### rule
@@ -45,13 +45,13 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-internal-require' );
```javascript
-var betainc = require( '@stdlib/math/base/special/betainc/lib/betainc.js' );
+const betainc = require( '@stdlib/math/base/special/betainc/lib/betainc.js' );
```
**Good**:
```javascript
-var betainc = require( '@stdlib/math/base/special/betainc' );
+const betainc = require( '@stdlib/math/base/special/betainc' );
```
@@ -65,17 +65,16 @@ var betainc = require( '@stdlib/math/base/special/betainc' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-internal-require' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-internal-require' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var betainc = require( \'@stdlib/math/base/special/betainc/lib/betainc.js\' )';
+const code = 'var betainc = require( \'@stdlib/math/base/special/betainc/lib/betainc.js\' )';
linter.defineRule( 'no-internal-require', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-internal-require': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-multiple-empty-lines/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-multiple-empty-lines/README.md
index ddb8f2413c3..0162f627d2f 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-multiple-empty-lines/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-multiple-empty-lines/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-multiple-empty-lines' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-multiple-empty-lines' );
```
#### rule
@@ -56,8 +56,6 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-multiple-empty-lines' );
function maxabs( x, y ) {
var nargs;
var args;
- var i;
-
nargs = arguments.length;
if ( nargs === 0 ) {
@@ -67,7 +65,7 @@ function maxabs( x, y ) {
return max( abs( x ), abs( y ) );
}
args = new Array( nargs );
- for ( i = 0; i < nargs; i++ ) {
+ for ( let i = 0; i < nargs; i++ ) {
args[ i ] = abs( arguments[ i ] );
}
@@ -90,7 +88,6 @@ function maxabs( x, y ) {
function maxabs( x, y ) {
var nargs;
var args;
- var i;
nargs = arguments.length;
if ( nargs === 0 ) {
@@ -100,7 +97,7 @@ function maxabs( x, y ) {
return max( abs( x ), abs( y ) );
}
args = new Array( nargs );
- for ( i = 0; i < nargs; i++ ) {
+ for ( let i = 0; i < nargs; i++ ) {
args[ i ] = abs( arguments[ i ] );
}
return max.apply( null, args );
@@ -118,21 +115,19 @@ function maxabs( x, y ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-multiple-empty-lines' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-multiple-empty-lines' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-var opts = {
+const opts = {
'rules': {
'no-multiple-empty-lines': 'error'
}
};
linter.defineRule( 'no-multiple-empty-lines', rule );
-code = [
+const code = [
'\'use strict\';',
'',
'// MODULES //',
@@ -165,7 +160,7 @@ code = [
'module.exports = numCPUs();'
].join( '\n' );
-result = linter.verify( code, opts );
+const result = linter.verify( code, opts );
console.log( result );
/* =>
[
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-nested-require/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-nested-require/README.md
index b9701ff6cca..23269cae06f 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-nested-require/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-nested-require/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-nested-require' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-nested-require' );
```
#### rule
@@ -45,13 +45,13 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-nested-require' );
```javascript
-var special = require( '@stdlib' ).math.base.special;
+const special = require( '@stdlib' ).math.base.special;
```
**Good**:
```javascript
-var special = require( '@stdlib/math/base' ).special;
+let special = require( '@stdlib/math/base' ).special;
special = require( '@stdlib/math/base/special' );
```
@@ -67,23 +67,21 @@ special = require( '@stdlib/math/base/special' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-nested-require' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-nested-require' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = 'var special = require( \'@stdlib/math\' ).base.special;';
+const code = 'var special = require( \'@stdlib/math\' ).base.special;';
linter.defineRule( 'no-nested-require', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-nested-require': 'error'
}
});
-/* =>
+/* returns
[
{
'ruleId': 'no-nested-require',
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-redeclare/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-redeclare/README.md
index 1512fcc5936..ce0b1c6ec94 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-redeclare/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-redeclare/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-redeclare' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-redeclare' );
```
#### rule
@@ -73,17 +73,16 @@ a = 'boop';
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-redeclare' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-redeclare' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var Object = 0';
+const code = 'var Object = 0';
linter.defineRule( 'no-redeclare', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-redeclare': [ 'error', {
'builtinGlobals': true
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-absolute-path/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-absolute-path/README.md
index f46311634ac..d874d0bcde7 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-absolute-path/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-absolute-path/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-require-absolute-path' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-require-absolute-path' );
```
#### rule
@@ -44,16 +44,16 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-require-absolute-path' );
-
+
```javascript
-var stdlib = require( '/path/to/stdlib' );
+const stdlib = require( '/path/to/stdlib' );
```
**Good**:
```javascript
-var stdlib = require( '@stdlib' );
+const stdlib = require( '@stdlib' );
```
@@ -67,17 +67,16 @@ var stdlib = require( '@stdlib' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-require-absolute-path' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-require-absolute-path' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var stdlib = require( \'/path/to/stdlib/\' );';
+const code = 'var stdlib = require( \'/path/to/stdlib/\' );';
linter.defineRule( 'no-require-absolute-path', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-require-absolute-path': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-index/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-index/README.md
index 08f95383b47..b4e38e777d8 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-index/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-require-index/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-require-index' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-require-index' );
```
#### rule
@@ -44,16 +44,16 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-require-index' );
-
+
```javascript
-var debug = require( 'debug/index.js' );
+const debug = require( 'debug/index.js' );
```
**Good**:
```javascript
-var debug = require( 'debug' );
+const debug = require( 'debug' );
```
@@ -67,17 +67,16 @@ var debug = require( 'debug' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-require-index' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-require-index' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var browserify = require( \'browserify/index.js\' );';
+const code = 'var browserify = require( \'browserify/index.js\' );';
linter.defineRule( 'no-require-index', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-require-index': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-self-require/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-self-require/README.md
index a94cde47ae8..fa325c3b260 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-self-require/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-self-require/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-self-require' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-self-require' );
```
#### rule
@@ -47,15 +47,17 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-self-require' );
```javascript
-var myself = require( __filename );
+const myself = require( __filename );
```
**Good**:
+
+
```javascript
-var other = require( './other.js' );
+const other = require( './other.js' );
```
@@ -66,22 +68,22 @@ var other = require( './other.js' );
## Examples
+
+
```javascript
-var resolve = require( 'path' ).resolve;
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-self-require' );
+const resolve = require( 'path' ).resolve;
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-self-require' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = 'var myself = require( \'./index.js\' );';
+const code = 'var myself = require( \'./index.js\' );';
linter.defineRule( 'no-self-require', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-self-require': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/no-unassigned-require/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/no-unassigned-require/README.md
index 1367d7f0c75..7fc09d407b3 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/no-unassigned-require/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/no-unassigned-require/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/no-unassigned-require' );
+const rule = require( '@stdlib/_tools/eslint/rules/no-unassigned-require' );
```
#### rule
@@ -51,7 +51,7 @@ require( 'tape' );
**Good**:
```javascript
-var tape = require( 'tape' );
+const tape = require( 'tape' );
```
@@ -65,17 +65,16 @@ var tape = require( 'tape' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/no-unassigned-require' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/no-unassigned-require' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'require( \'@stdlib/math\' );';
+const code = 'require( \'@stdlib/math\' );';
linter.defineRule( 'no-unassigned-require', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'no-unassigned-require': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/repl-namespace-order/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/repl-namespace-order/README.md
index c6bc1a2448a..34ab84e3a59 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/repl-namespace-order/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/repl-namespace-order/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/repl-namespace-order' );
+const rule = require( '@stdlib/_tools/eslint/rules/repl-namespace-order' );
```
#### rule
@@ -43,7 +43,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/repl-namespace-order' );
**Bad**:
```javascript
-var ns = [];
+const ns = [];
ns.push({
'alias': 'pop',
@@ -72,7 +72,7 @@ ns.push({
**Good**:
```javascript
-var ns = [];
+const ns = [];
ns.push({
'alias': 'pluck',
@@ -109,14 +109,12 @@ ns.push({
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/repl-namespace-order' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/repl-namespace-order' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-code = [
+const code = [
'/* eslint-enable stdlib/repl-namespace-order */',
'',
'/* When adding names to the namespace, ensure that they are added in alphabetical order according to alias (namespace key). */',
@@ -148,7 +146,7 @@ code = [
linter.defineRule( 'repl-namespace-order', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'repl-namespace-order': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/require-file-extensions/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/require-file-extensions/README.md
index 8d59aea3f7a..b64da73b215 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/require-file-extensions/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/require-file-extensions/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/require-file-extensions' );
+const rule = require( '@stdlib/_tools/eslint/rules/require-file-extensions' );
```
#### rule
@@ -48,18 +48,18 @@ var rule = require( '@stdlib/_tools/eslint/rules/require-file-extensions' );
```javascript
// Missing file extension:
-var debug = require( 'debug/src/browser' );
+const debug = require( 'debug/src/browser' );
// Invalid file extension:
-var readme = require( '@stdlib/array/int32/README.md' );
+const readme = require( '@stdlib/array/int32/README.md' );
```
**Good**:
```javascript
-var debug = require( 'debug/src/browser.js' );
+const debug = require( 'debug/src/browser.js' );
-var Int32Array = require( '@stdlib/array/int32' );
+const Int32Array = require( '@stdlib/array/int32' );
```
@@ -73,14 +73,12 @@ var Int32Array = require( '@stdlib/array/int32' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/require-file-extensions' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/require-file-extensions' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-var opts = {
+const opts = {
'rules': {
'require-file-extensions': 'error'
}
@@ -88,8 +86,8 @@ var opts = {
linter.defineRule( 'require-file-extensions', rule );
-code = 'var readme = require( \'debug/README.md\' )';
-result = linter.verify( code, opts );
+let code = 'var readme = require( \'debug/README.md\' )';
+let result = linter.verify( code, opts );
/* returns
[
{
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/require-globals/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/require-globals/README.md
index 865389d6dc9..3580c8fa73b 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/require-globals/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/require-globals/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/require-globals' );
+const rule = require( '@stdlib/_tools/eslint/rules/require-globals' );
```
#### rule
@@ -52,7 +52,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/require-globals' );
]
}]
*/
-var arr = new Float32Array();
+const arr = new Float32Array();
```
**Good**:
@@ -67,9 +67,9 @@ var arr = new Float32Array();
]
}]
*/
-var Float32Array = require( '@stdlib/array/float32' );
+const Float32Array = require( '@stdlib/array/float32' );
-var arr = new Float32Array();
+let arr = new Float32Array();
arr = new Int32Array();
```
@@ -85,17 +85,16 @@ arr = new Int32Array();
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/require-globals' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/require-globals' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var arr = new Int32Array( [1,2,3] );';
+const code = 'var arr = new Int32Array( [1,2,3] );';
linter.defineRule( 'require-globals', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'require-globals': [ 'error', {
'globals': [
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/require-leading-slash/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/require-leading-slash/README.md
index 63955ccba3a..e28e3cadaaf 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/require-leading-slash/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/require-leading-slash/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/require-leading-slash' );
+const rule = require( '@stdlib/_tools/eslint/rules/require-leading-slash' );
```
#### rule
@@ -44,16 +44,18 @@ var rule = require( '@stdlib/_tools/eslint/rules/require-leading-slash' );
-
+
```javascript
-var stdlib = require( '../lib/index.js' );
+const stdlib = require( '../lib/index.js' );
```
**Good**:
+
+
```javascript
-var stdlib = require( './../lib/index.js' );
+const stdlib = require( './../lib/index.js' );
```
@@ -67,17 +69,16 @@ var stdlib = require( './../lib/index.js' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/require-leading-slash' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/require-leading-slash' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var stdlib = require( \'../lib/index.js\' );';
+const code = 'var stdlib = require( \'../lib/index.js\' );';
linter.defineRule( 'require-leading-slash', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'require-leading-slash': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/require-order/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/require-order/README.md
index 8a7405db474..0b3dcdd5837 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/require-order/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/require-order/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/require-order' );
+const rule = require( '@stdlib/_tools/eslint/rules/require-order' );
```
#### rule
@@ -48,26 +48,28 @@ var rule = require( '@stdlib/_tools/eslint/rules/require-order' );
-
+
```javascript
// 'order': [ 'builtin', 'external', '/^@stdlib/', 'path' ]
-var validate = require( './validate.js' );
-var math = require( '@stdlib/math' );
-var debug = require( 'debug' );
-var fs = require( 'fs' );
+const validate = require( './validate.js' );
+const math = require( '@stdlib/math' );
+const debug = require( 'debug' );
+const fs = require( 'fs' );
```
**Good**:
+
+
```javascript
// 'order': [ 'builtin', 'external', '/^@stdlib/', 'path' ]
-var fs = require( 'fs' );
-var debug = require( 'debug' );
-var math = require( '@stdlib/math' );
-var validate = require( './validate.js' );
+const fs = require( 'fs' );
+const debug = require( 'debug' );
+const math = require( '@stdlib/math' );
+const validate = require( './validate.js' );
```
To enforce a custom ordering, set the `order` option. In addition to `builtin`, `external`, and `path`, the `order` option supports regular expression strings such as `'/^@stdlib/'`.
@@ -83,20 +85,19 @@ To enforce a custom ordering, set the `order` option. In addition to `builtin`,
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/require-order' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/require-order' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = [
+const code = [
'var validate = require( \'./validate.js\' )',
'var fs = require( \'fs\' )'
].join( '\n' );
linter.defineRule( 'require-order', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'require-order': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/require-spaces/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/require-spaces/README.md
index 3f064dfa695..a403f48c399 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/require-spaces/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/require-spaces/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/require-spaces' );
+const rule = require( '@stdlib/_tools/eslint/rules/require-spaces' );
```
#### rule
@@ -43,7 +43,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/require-spaces' );
**Good**:
```javascript
-var betainc = require( '@stdlib/math/base/special/betainc' );
+const betainc = require( '@stdlib/math/base/special/betainc' );
```
**Bad**:
@@ -51,9 +51,9 @@ var betainc = require( '@stdlib/math/base/special/betainc' );
```javascript
-var betainc = require('@stdlib/math/base/special/betainc');
-var zip = require( '@stdlib/utils/zip');
-var noop = require('@stdlib/utils/noop' );
+const betainc = require('@stdlib/math/base/special/betainc');
+const zip = require( '@stdlib/utils/zip');
+const noop = require('@stdlib/utils/noop' );
```
@@ -67,16 +67,16 @@ var noop = require('@stdlib/utils/noop' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/require-spaces' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/require-spaces' );
-var linter = new Linter();
+const linter = new Linter();
-var code = 'var betainc = require(\'@stdlib/math/base/special/betainc\');';
+const code = 'var betainc = require(\'@stdlib/math/base/special/betainc\');';
linter.defineRule( 'require-spaces', rule );
-var result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'require-spaces': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/section-header-empty-lines/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/section-header-empty-lines/README.md
index 5cc314d8067..cc0d44eb5ec 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/section-header-empty-lines/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/section-header-empty-lines/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/section-header-empty-lines' );
+const rule = require( '@stdlib/_tools/eslint/rules/section-header-empty-lines' );
```
#### rule
@@ -52,7 +52,7 @@ function add( x, y ) {
}
// VARIABLES //
-var TWO_PI = 2.0 * 3.141592653589793;
+const TWO_PI = 2.0 * 3.141592653589793;
// EXPORTS //
@@ -72,7 +72,7 @@ function add( x, y ) {
// VARIABLES //
-var TWO_PI = 2.0 * 3.141592653589793;
+const TWO_PI = 2.0 * 3.141592653589793;
// EXPORTS //
@@ -91,21 +91,19 @@ module.exports = TWO_PI;
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/section-header-empty-lines' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/section-header-empty-lines' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-var opts = {
+const opts = {
'rules': {
'section-header-empty-lines': 'error'
}
};
linter.defineRule( 'section-header-empty-lines', rule );
-code = [
+const code = [
'\'use strict\';',
'',
'// MODULES //',
@@ -133,7 +131,7 @@ code = [
'module.exports = numCPUs();'
].join( '\n' );
-result = linter.verify( code, opts );
+const result = linter.verify( code, opts );
console.log( result );
/* =>
[
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/section-headers/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/section-headers/README.md
index b02648e22d1..51a684124a9 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/section-headers/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/section-headers/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/section-headers' );
+const rule = require( '@stdlib/_tools/eslint/rules/section-headers' );
```
#### rule
@@ -63,7 +63,7 @@ function add( x, y ) {
// CONSTANTS //
-var TWO_PI = 2.0 * 3.141592653589793;
+const TWO_PI = 2.0 * 3.141592653589793;
// EXPORTS
@@ -76,7 +76,7 @@ module.exports = TWO_PI;
```javascript
// VARIABLES //
-var TWO_PI = 2.0 * 3.141592653589793;
+const TWO_PI = 2.0 * 3.141592653589793;
// EXPORTS //
@@ -95,22 +95,20 @@ module.exports = TWO_PI;
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/section-headers' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/section-headers' );
-var linter = new Linter();
-var result;
-var code;
+const linter = new Linter();
-var opts = {
+const opts = {
'rules': {
'section-headers': 'error'
}
};
linter.defineRule( 'section-headers', rule );
-code = '// EXPORTS ';
-result = linter.verify( code, opts );
+let code = '// EXPORTS ';
+let result = linter.verify( code, opts );
console.log( result );
/* =>
[
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/ternary-condition-parentheses/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/ternary-condition-parentheses/README.md
index 6640ef2433e..f050cbdf75e 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/ternary-condition-parentheses/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/ternary-condition-parentheses/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/ternary-condition-parentheses' );
+const rule = require( '@stdlib/_tools/eslint/rules/ternary-condition-parentheses' );
```
#### rule
@@ -45,17 +45,17 @@ var rule = require( '@stdlib/_tools/eslint/rules/ternary-condition-parentheses'
```javascript
-var randu = require( '@stdlib/random/base/randu' );
+const randu = require( '@stdlib/random/base/randu' );
-var bool = randu() > 0.5 ? 1 : 0;
+const bool = randu() > 0.5 ? 1 : 0;
```
**Good**:
```javascript
-var randu = require( '@stdlib/random/base/randu' );
+const randu = require( '@stdlib/random/base/randu' );
-var bool = ( randu() > 0.5 ) ? 1 : 0;
+const bool = ( randu() > 0.5 ) ? 1 : 0;
```
@@ -69,17 +69,16 @@ var bool = ( randu() > 0.5 ) ? 1 : 0;
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/ternary-condition-parentheses' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/ternary-condition-parentheses' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var bool = randu() > 0.5 ? 1 : 0;';
+const code = 'var bool = randu() > 0.5 ? 1 : 0;';
linter.defineRule( 'ternary-condition-parentheses', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'ternary-condition-parentheses': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/uppercase-required-constants/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/uppercase-required-constants/README.md
index 6e61aa55521..0bbe7ac8f84 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/uppercase-required-constants/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/uppercase-required-constants/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/uppercase-required-constants' );
+const rule = require( '@stdlib/_tools/eslint/rules/uppercase-required-constants' );
```
#### rule
@@ -45,13 +45,13 @@ var rule = require( '@stdlib/_tools/eslint/rules/uppercase-required-constants' )
```javascript
-var float64SqrtEpsilon = require( '@stdlib/constants/float64/sqrt-eps' );
+const float64SqrtEpsilon = require( '@stdlib/constants/float64/sqrt-eps' );
```
**Good**:
```javascript
-var FLOAT64_SQRT_EPSILON = require( '@stdlib/constants/float64/sqrt-eps' );
+const FLOAT64_SQRT_EPSILON = require( '@stdlib/constants/float64/sqrt-eps' );
```
@@ -65,17 +65,16 @@ var FLOAT64_SQRT_EPSILON = require( '@stdlib/constants/float64/sqrt-eps' );
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/uppercase-required-constants' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/uppercase-required-constants' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = 'var pi = require( \'@stdlib/constants/float64/pi\' );';
+const code = 'var pi = require( \'@stdlib/constants/float64/pi\' );';
linter.defineRule( 'uppercase-required-constants', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'uppercase-required-constants': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/vars-order/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/vars-order/README.md
index 9597337c3e9..cfcffe1bf48 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/vars-order/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/vars-order/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var rule = require( '@stdlib/_tools/eslint/rules/vars-order' );
+const rule = require( '@stdlib/_tools/eslint/rules/vars-order' );
```
#### rule
@@ -109,13 +109,12 @@ function triangular( rand, a, b, c ) {
```javascript
-var Linter = require( 'eslint' ).Linter;
-var rule = require( '@stdlib/_tools/eslint/rules/vars-order' );
+const Linter = require( 'eslint' ).Linter;
+const rule = require( '@stdlib/_tools/eslint/rules/vars-order' );
-var linter = new Linter();
-var result;
+const linter = new Linter();
-var code = [
+const code = [
'function fizzBuzz() {',
' var i;',
' var out;',
@@ -129,7 +128,7 @@ var code = [
linter.defineRule( 'vars-order', rule );
-result = linter.verify( code, {
+const result = linter.verify( code, {
'rules': {
'vars-order': 'error'
}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/utils/find-jsdoc/README.md b/lib/node_modules/@stdlib/_tools/eslint/utils/find-jsdoc/README.md
index 75da5f58ff3..e086aba4c76 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/utils/find-jsdoc/README.md
+++ b/lib/node_modules/@stdlib/_tools/eslint/utils/find-jsdoc/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );
+const findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );
```
#### findJSDoc( source, node )
@@ -51,14 +51,13 @@ Retrieves a JSDoc comment associated with a given AST `node`, provided a `source
```javascript
-var Linter = require( 'eslint' ).Linter;
-var findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );
+const Linter = require( 'eslint' ).Linter;
+const findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );
-var linter = new Linter();
-var code;
+const linter = new Linter();
function rule( context ) {
- var source = context.getSourceCode();
+ const source = context.getSourceCode();
return {
'FunctionExpression:exit': log,
@@ -68,14 +67,14 @@ function rule( context ) {
};
function log( node ) {
- var jsdoc = findJSDoc( source, node );
+ const jsdoc = findJSDoc( source, node );
if ( jsdoc ) {
console.log( jsdoc );
}
}
}
-code = [
+const code = [
'/**',
'* Squares a number.',
'* ',
diff --git a/lib/node_modules/@stdlib/_tools/github/create-issue/README.md b/lib/node_modules/@stdlib/_tools/github/create-issue/README.md
index f4596a6e8da..90663d3db21 100644
--- a/lib/node_modules/@stdlib/_tools/github/create-issue/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/create-issue/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var createIssue = require( '@stdlib/_tools/github/create-issue' );
+const createIssue = require( '@stdlib/_tools/github/create-issue' );
```
#### createIssue( slug, title, options, clbk )
@@ -47,7 +47,7 @@ var createIssue = require( '@stdlib/_tools/github/create-issue' );
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -88,7 +88,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
@@ -142,9 +142,9 @@ function clbk( error, data, info ) {
```javascript
-var createIssue = require( '@stdlib/_tools/github/create-issue' );
+const createIssue = require( '@stdlib/_tools/github/create-issue' );
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'my-unique-agent',
'body': 'Beep boop.'
diff --git a/lib/node_modules/@stdlib/_tools/github/create-repo/README.md b/lib/node_modules/@stdlib/_tools/github/create-repo/README.md
index 93b5c62eb8a..73ddffdc7f9 100644
--- a/lib/node_modules/@stdlib/_tools/github/create-repo/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/create-repo/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var createRepo = require( '@stdlib/_tools/github/create-repo' );
+const createRepo = require( '@stdlib/_tools/github/create-repo' );
```
#### createRepo( name, options, clbk )
@@ -47,7 +47,7 @@ var createRepo = require( '@stdlib/_tools/github/create-repo' );
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -93,7 +93,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -105,7 +105,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
@@ -118,7 +118,7 @@ By default, the `function` [creates][github-create-repo] a repository for the au
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'org': 'math-io'
};
@@ -133,7 +133,7 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'org': 'math-io',
'private': false,
@@ -143,7 +143,7 @@ var opts = {
'init': false
};
-var create = createRepo.factory( opts, clbk );
+const create = createRepo.factory( opts, clbk );
create( 'beep' );
create( 'boop' );
@@ -181,9 +181,9 @@ The factory method accepts the same `options` as [`createRepo()`](#create-repo).
```javascript
-var createRepo = require( '@stdlib/_tools/github/create-repo' );
+const createRepo = require( '@stdlib/_tools/github/create-repo' );
-var opts = {
+const opts = {
'token': '',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/create-token/README.md b/lib/node_modules/@stdlib/_tools/github/create-token/README.md
index e7f51eb038d..9a5d5135969 100644
--- a/lib/node_modules/@stdlib/_tools/github/create-token/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/create-token/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var createToken = require( '@stdlib/_tools/github/create-token' );
+const createToken = require( '@stdlib/_tools/github/create-token' );
```
@@ -49,7 +49,7 @@ var createToken = require( '@stdlib/_tools/github/create-token' );
```javascript
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop',
'scopes': [ 'public_repo', 'read:org' ],
@@ -113,7 +113,7 @@ The `function` **only** supports basic authentication using a `username` and `pa
```javascript
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop',
'scopes': [ 'public_repo' ],
@@ -128,7 +128,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop',
'scopes': [ 'public_repo' ],
@@ -144,7 +144,7 @@ If a user has [two-factor authentication][github-two-factor] enabled, set the `o
```javascript
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop',
'otp': '1234',
@@ -181,9 +181,9 @@ createToken( opts, clbk );
## Examples
```javascript
-var createToken = require( '@stdlib/_tools/github/create-token' );
+const createToken = require( '@stdlib/_tools/github/create-token' );
-var opts = {
+const opts = {
'username': '',
'password': '',
'otp': '',
diff --git a/lib/node_modules/@stdlib/_tools/github/delete-token/README.md b/lib/node_modules/@stdlib/_tools/github/delete-token/README.md
index 1bdbd683fd5..8737bf60845 100644
--- a/lib/node_modules/@stdlib/_tools/github/delete-token/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/delete-token/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var deleteToken = require( '@stdlib/_tools/github/delete-token' );
+const deleteToken = require( '@stdlib/_tools/github/delete-token' );
```
@@ -49,9 +49,9 @@ var deleteToken = require( '@stdlib/_tools/github/delete-token' );
```javascript
-var tokenID = 1;
+const tokenID = 1;
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop'
};
@@ -84,7 +84,7 @@ The `function` **only** supports basic authentication using a `username` and `pa
```javascript
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop'
};
@@ -97,7 +97,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop',
'useragent': 'hello-github!'
@@ -111,7 +111,7 @@ If a user has [two-factor authentication][github-two-factor] enabled, set the `o
```javascript
-var opts = {
+const opts = {
'username': 'beep',
'password': 'boop',
'otp': '1234'
@@ -146,11 +146,11 @@ deleteToken( tokenID, opts, clbk );
## Examples
```javascript
-var deleteToken = require( '@stdlib/_tools/github/delete-token' );
+const deleteToken = require( '@stdlib/_tools/github/delete-token' );
-var tokenID = 1;
+const tokenID = 1;
-var opts = {
+const opts = {
'username': '',
'password': '',
'otp': '',
diff --git a/lib/node_modules/@stdlib/_tools/github/dependents-count/README.md b/lib/node_modules/@stdlib/_tools/github/dependents-count/README.md
index ce0c019a517..c35d6f126d9 100644
--- a/lib/node_modules/@stdlib/_tools/github/dependents-count/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/dependents-count/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var dependentsCount = require( '@stdlib/_tools/github/dependents-count' );
+const dependentsCount = require( '@stdlib/_tools/github/dependents-count' );
```
@@ -87,7 +87,7 @@ The function accepts the following `options`:
```javascript
-var dependentsCount = require( '@stdlib/_tools/github/dependents-count' );
+const dependentsCount = require( '@stdlib/_tools/github/dependents-count' );
dependentsCount( 'stdlib-js/random-base-mt19937', onResponse );
diff --git a/lib/node_modules/@stdlib/_tools/github/dependents/README.md b/lib/node_modules/@stdlib/_tools/github/dependents/README.md
index a98357a7f23..414f11937ac 100644
--- a/lib/node_modules/@stdlib/_tools/github/dependents/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/dependents/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var dependents = require( '@stdlib/_tools/github/dependents' );
+const dependents = require( '@stdlib/_tools/github/dependents' );
```
@@ -65,7 +65,7 @@ The function accepts the following `options`:
By default, the function returns the list of repository dependents. To return the list of package dependents, set the `type` option.
```javascript
-var opts = {
+const opts = {
'type': 'package'
};
@@ -112,7 +112,7 @@ Each element of the returned array is an object having the following properties:
```javascript
-var dependents = require( '@stdlib/_tools/github/dependents' );
+const dependents = require( '@stdlib/_tools/github/dependents' );
dependents( 'stdlib-js/random-base-mt19937', onResponse );
diff --git a/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/README.md b/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/README.md
index 1412a914d12..248eb0ee807 100644
--- a/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var dispatch = require( '@stdlib/_tools/github/dispatch-workflow' );
+const dispatch = require( '@stdlib/_tools/github/dispatch-workflow' );
```
#### dispatch( slug, id, options, clbk )
@@ -47,7 +47,7 @@ var dispatch = require( '@stdlib/_tools/github/dispatch-workflow' );
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -86,7 +86,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
@@ -137,9 +137,9 @@ function clbk( error, info ) {
```javascript
-var dispatch = require( '@stdlib/_tools/github/dispatch-workflow' );
+const dispatch = require( '@stdlib/_tools/github/dispatch-workflow' );
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'my-unique-agent'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/fetch-file/README.md b/lib/node_modules/@stdlib/_tools/github/fetch-file/README.md
index d8576fe2667..a3a9d62cb8c 100644
--- a/lib/node_modules/@stdlib/_tools/github/fetch-file/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/fetch-file/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var fetchFile = require( '@stdlib/_tools/github/fetch-file' );
+const fetchFile = require( '@stdlib/_tools/github/fetch-file' );
```
@@ -50,7 +50,7 @@ Fetches a `file` from one or more **public** GitHub repositories.
```javascript
// List of repository slugs (username|org/repo):
-var repos = [
+const repos = [
'kgryte/utils-copy',
'dstructs/matrix',
'math-io/gamma',
@@ -92,14 +92,14 @@ Creates a reusable `function`.
```javascript
-var repos = [
+const repos = [
'kgryte/utils-copy',
'dstructs/matrix',
'math-io/gamma',
'unknown_user/repo'
];
-var get = fetchFile.factory( 'README.md', repos, clbk );
+const get = fetchFile.factory( 'README.md', repos, clbk );
get();
get();
@@ -133,9 +133,9 @@ The factory method accepts the same `arguments` as [`fetchFile()`](#fetchFile).
## Examples
```javascript
-var fetchFile = require( '@stdlib/_tools/github/fetch-file' );
+const fetchFile = require( '@stdlib/_tools/github/fetch-file' );
-var repos = [
+const repos = [
'kgryte/utils-copy',
'math-io/gamma',
'dstructs/matrix'
diff --git a/lib/node_modules/@stdlib/_tools/github/followers/README.md b/lib/node_modules/@stdlib/_tools/github/followers/README.md
index 2ed403be697..a28a22fc955 100644
--- a/lib/node_modules/@stdlib/_tools/github/followers/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/followers/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var followers = require( '@stdlib/_tools/github/followers' );
+const followers = require( '@stdlib/_tools/github/followers' );
```
@@ -49,7 +49,7 @@ Gets a user's [followers][github-followers].
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -81,7 +81,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -93,7 +93,7 @@ To get the [followers][github-followers] of a particular user, set the `username
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -105,7 +105,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -119,12 +119,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'token': 'tkjorjk34ek3nj4!'
};
-var get = followers.factory( opts, onFollowers );
+const get = followers.factory( opts, onFollowers );
get();
get();
@@ -164,9 +164,9 @@ The factory method accepts the same `options` as [`followers()`](#followers).
```javascript
-var followers = require( '@stdlib/_tools/github/followers' );
+const followers = require( '@stdlib/_tools/github/followers' );
-var opts = {
+const opts = {
'useragent': 'beep-boop-bop',
'token': 'tkjorjk34ek3nj4!'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/following/README.md b/lib/node_modules/@stdlib/_tools/github/following/README.md
index c7e98b62ede..83bdffdcd0f 100644
--- a/lib/node_modules/@stdlib/_tools/github/following/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/following/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var following = require( '@stdlib/_tools/github/following' );
+const following = require( '@stdlib/_tools/github/following' );
```
@@ -49,7 +49,7 @@ Gets a list of users a user is [following][github-following].
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -81,7 +81,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -93,7 +93,7 @@ To get a list of users a particular user is [following][github-following], set t
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -105,7 +105,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -119,12 +119,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'token': 'tkjorjk34ek3nj4!'
};
-var get = following.factory( opts, clbk );
+const get = following.factory( opts, clbk );
get();
get();
@@ -164,9 +164,9 @@ The factory method accepts the same `options` as [`following()`](#following).
```javascript
-var following = require( '@stdlib/_tools/github/following' );
+const following = require( '@stdlib/_tools/github/following' );
-var opts = {
+const opts = {
'username': 'kgryte',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/get/README.md b/lib/node_modules/@stdlib/_tools/github/get/README.md
index ff0ee0f3e49..7d10f2ab0cc 100644
--- a/lib/node_modules/@stdlib/_tools/github/get/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/get/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var get = require( '@stdlib/_tools/github/get' );
+const get = require( '@stdlib/_tools/github/get' );
```
@@ -84,7 +84,7 @@ The function accepts the following `options`:
To specify a particular resource [endpoint][github-api], set the `pathname` option.
```javascript
-var opts = {
+const opts = {
'pathname': '/user/repos'
};
@@ -111,7 +111,7 @@ function onResponse( error, data, info ) {
To [authenticate][github-oauth2] with an endpoint, set the [`token`][github-token] option.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -139,7 +139,7 @@ By default, the function only requests a single [page][github-pagination] of res
```javascript
// Resolves pages 2-5...
-var opts = {
+const opts = {
'page': 2,
'last_page': 5
};
@@ -168,7 +168,7 @@ To specify that all [pages][github-pagination] beginning from `page` be resolved
```javascript
// Resolve all pages...
-var opts = {
+const opts = {
'last_page': 'last'
};
@@ -195,7 +195,7 @@ function onResponse( error, data, info ) {
To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -241,13 +241,13 @@ function onResponse( error, data, info ) {
}
}
-var opts = {
+const opts = {
'pathname': '/user/repos',
'last_page': 'last',
'token': 'tkjorjk34ek3nj4!'
};
-var getRepos = get.factory( opts, onResponse );
+const getRepos = get.factory( opts, onResponse );
getRepos();
getRepos();
@@ -292,9 +292,9 @@ The method accepts the same `options` as [`get()`](#get) above.
```javascript
-var get = require( '@stdlib/_tools/github/get' );
+const get = require( '@stdlib/_tools/github/get' );
-var opts = {
+const opts = {
'hostname': 'api.github.com',
'pathname': '/user/repos',
'useragent': 'my-unique-agent',
diff --git a/lib/node_modules/@stdlib/_tools/github/org-repos/README.md b/lib/node_modules/@stdlib/_tools/github/org-repos/README.md
index 208f656adea..5414ad52ea7 100644
--- a/lib/node_modules/@stdlib/_tools/github/org-repos/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/org-repos/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var repos = require( '@stdlib/_tools/github/org-repos' );
+const repos = require( '@stdlib/_tools/github/org-repos' );
```
@@ -49,7 +49,7 @@ Gets meta data for all [repositories][github-repos] belonging to an organization
```javascript
-var opts = {
+const opts = {
'org': 'stdlib-js'
};
@@ -82,7 +82,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'org': 'stdlib-js',
'token': 'tkjorjk34ek3nj4!'
};
@@ -95,7 +95,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'org': 'stdlib-js',
'useragent': 'hello-github!'
};
@@ -108,7 +108,7 @@ To return repositories of a particular [type][github-org-repos], set the `type`
```javascript
-var opts = {
+const opts = {
'org': 'stdlib-js',
'type': 'forks'
};
@@ -123,12 +123,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'org': 'stdlib-js',
'token': 'tkjorjk34ek3nj4!'
};
-var get = repos.factory( opts, clbk );
+const get = repos.factory( opts, clbk );
get();
get();
@@ -164,9 +164,9 @@ The factory method accepts the same `options` as [`repos()`](#repos).
## Examples
```javascript
-var repos = require( '@stdlib/_tools/github/org-repos' );
+const repos = require( '@stdlib/_tools/github/org-repos' );
-var opts = {
+const opts = {
'org': 'stdlib-js',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/rank-followers/README.md b/lib/node_modules/@stdlib/_tools/github/rank-followers/README.md
index 4d7972a209b..7704ecb5e51 100644
--- a/lib/node_modules/@stdlib/_tools/github/rank-followers/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/rank-followers/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var rank = require( '@stdlib/_tools/github/rank-followers' );
+const rank = require( '@stdlib/_tools/github/rank-followers' );
```
@@ -49,7 +49,7 @@ Ranks a user's [followers][github-followers].
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -101,7 +101,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -113,7 +113,7 @@ To analyze the [followers][github-followers] of a particular user, set the `user
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -125,7 +125,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -137,7 +137,7 @@ To specify an analysis method, set the `method` option.
```javascript
-var opts = {
+const opts = {
'method': 'ffratio'
};
@@ -151,12 +151,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'token': 'tkjorjk34ek3nj4!'
};
-var run = rank.factory( opts, clbk );
+const run = rank.factory( opts, clbk );
run();
run();
@@ -196,9 +196,9 @@ The factory method accepts the same `options` as [`rank()`](#rank).
```javascript
-var rank = require( '@stdlib/_tools/github/rank-followers' );
+const rank = require( '@stdlib/_tools/github/rank-followers' );
-var opts = {
+const opts = {
'username': 'kgryte',
'useragent': 'beep-boop-bop',
'method': 'ffratio'
diff --git a/lib/node_modules/@stdlib/_tools/github/rank-users/README.md b/lib/node_modules/@stdlib/_tools/github/rank-users/README.md
index 82cdd14c354..77d8381c9dc 100644
--- a/lib/node_modules/@stdlib/_tools/github/rank-users/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/rank-users/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var rank = require( '@stdlib/_tools/github/rank-users' );
+const rank = require( '@stdlib/_tools/github/rank-users' );
```
@@ -49,7 +49,7 @@ Ranks users provided a [user detail][github-user-details] input data `array`.
```javascript
-var data = [
+const data = [
{
'login': 'beep',
'followers': 9
@@ -64,7 +64,7 @@ var data = [
}
];
-var opts = {
+const opts = {
'method': 'followers'
};
@@ -117,7 +117,7 @@ During analysis, the module may need to request resources from the GitHub [API][
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -129,7 +129,7 @@ To specify a [user agent][github-user-agent] when interacting with the GitHub [A
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -141,7 +141,7 @@ To specify an analysis method, set the `method` option.
```javascript
-var opts = {
+const opts = {
'method': 'ffratio'
};
@@ -155,12 +155,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'method': 'following',
'token': 'tkjorjk34ek3nj4!'
};
-var run = rank.factory( opts, clbk );
+const run = rank.factory( opts, clbk );
run( data );
run( data );
@@ -198,10 +198,10 @@ The factory method accepts the same `options` as [`rank()`](#rank).
## Examples
```javascript
-var rank = require( '@stdlib/_tools/github/rank-users' );
-var data = require( './data.json' );
+const rank = require( '@stdlib/_tools/github/rank-users' );
+const data = require( './data.json' );
-var opts = {
+const opts = {
'method': 'ffratio'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/set-topics/README.md b/lib/node_modules/@stdlib/_tools/github/set-topics/README.md
index 15ac23ca9f1..0f9a23470be 100644
--- a/lib/node_modules/@stdlib/_tools/github/set-topics/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/set-topics/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var setTopics = require( '@stdlib/_tools/github/set-topics' );
+const setTopics = require( '@stdlib/_tools/github/set-topics' );
```
@@ -49,7 +49,7 @@ var setTopics = require( '@stdlib/_tools/github/set-topics' );
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -79,7 +79,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -91,7 +91,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
@@ -106,12 +106,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
-var topics = setTopics.factory( opts, clbk );
+const topics = setTopics.factory( opts, clbk );
topics( 'math-io/erf', [ 'math', 'special' ] );
// ...
@@ -140,9 +140,9 @@ The factory method accepts the same `options` as [`setTopics()`](#topics).
```javascript
-var setTopics = require( '@stdlib/_tools/github/set-topics' );
+const setTopics = require( '@stdlib/_tools/github/set-topics' );
-var opts = {
+const opts = {
'token': '',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/star-repo/README.md b/lib/node_modules/@stdlib/_tools/github/star-repo/README.md
index 6dc78670038..02076c21ca3 100644
--- a/lib/node_modules/@stdlib/_tools/github/star-repo/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/star-repo/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var star = require( '@stdlib/_tools/github/star-repo' );
+const star = require( '@stdlib/_tools/github/star-repo' );
```
@@ -49,7 +49,7 @@ var star = require( '@stdlib/_tools/github/star-repo' );
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -79,7 +79,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -91,7 +91,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
@@ -106,12 +106,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
-var like = star.factory( opts, clbk );
+const like = star.factory( opts, clbk );
like( 'stdlib-js/stdlib' );
// ...
@@ -140,9 +140,9 @@ The factory method accepts the same `options` as [`star()`](#star).
```javascript
-var star = require( '@stdlib/_tools/github/star-repo' );
+const star = require( '@stdlib/_tools/github/star-repo' );
-var opts = {
+const opts = {
'token': '',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/starred/README.md b/lib/node_modules/@stdlib/_tools/github/starred/README.md
index dc8239091d8..8c93541bc9d 100644
--- a/lib/node_modules/@stdlib/_tools/github/starred/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/starred/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var starred = require( '@stdlib/_tools/github/starred' );
+const starred = require( '@stdlib/_tools/github/starred' );
```
@@ -49,7 +49,7 @@ Gets a list of repositories a user has [starred][github-starred].
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -83,7 +83,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -95,7 +95,7 @@ To get a list of repositories a particular user has [starred][github-starred], s
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -107,7 +107,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -121,12 +121,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'token': 'tkjorjk34ek3nj4!'
};
-var get = starred.factory( opts, clbk );
+const get = starred.factory( opts, clbk );
get();
get();
@@ -166,9 +166,9 @@ The factory method accepts the same `options` as [`starred()`](#starred).
```javascript
-var starred = require( '@stdlib/_tools/github/starred' );
+const starred = require( '@stdlib/_tools/github/starred' );
-var opts = {
+const opts = {
'username': 'kgryte',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/subscriptions/README.md b/lib/node_modules/@stdlib/_tools/github/subscriptions/README.md
index 8e7317b6aa5..158559dbad3 100644
--- a/lib/node_modules/@stdlib/_tools/github/subscriptions/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/subscriptions/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var subscriptions = require( '@stdlib/_tools/github/subscriptions' );
+const subscriptions = require( '@stdlib/_tools/github/subscriptions' );
```
#### subscriptions( opts, clbk )
@@ -47,7 +47,7 @@ Gets a user's list of repository [subscriptions][github-watching].
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -79,7 +79,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -91,7 +91,7 @@ To get a list of repositories a particular user is [watching][github-watching],
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -103,7 +103,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -117,12 +117,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'token': 'tkjorjk34ek3nj4!'
};
-var get = subscriptions.factory( opts, clbk );
+const get = subscriptions.factory( opts, clbk );
get();
get();
@@ -162,9 +162,9 @@ The factory method accepts the same `options` as [`subscriptions()`](#subscripti
```javascript
-var subscriptions = require( '@stdlib/_tools/github/subscriptions' );
+const subscriptions = require( '@stdlib/_tools/github/subscriptions' );
-var opts = {
+const opts = {
'username': 'kgryte',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/user-details/README.md b/lib/node_modules/@stdlib/_tools/github/user-details/README.md
index 8b51dcad054..ef3cdea9217 100644
--- a/lib/node_modules/@stdlib/_tools/github/user-details/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/user-details/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var userinfo = require( 'github-user-details' );
+const userinfo = require( 'github-user-details' );
```
@@ -47,7 +47,7 @@ var userinfo = require( 'github-user-details' );
Gets user [details][github-user-details] for one or more users.
```javascript
-var opts = {
+const opts = {
'usernames': [
'kgryte',
'planeshifter',
@@ -96,7 +96,7 @@ The `function` accepts the following `options`:
To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] option.
```javascript
-var opts = {
+const opts = {
'usernames': ['kgryte'],
'token': 'tkjorjk34ek3nj4!'
};
@@ -107,7 +107,7 @@ userinfo( opts, clbk );
To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'usernames': [ 'kgryte', 'Planeshifter' ],
'useragent': 'hello-github!'
};
@@ -120,12 +120,12 @@ userinfo( opts, clbk );
Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'usernames': [ 'kgryte', 'Planeshifter' ],
'token': 'tkjorjk34ek3nj4!'
};
-var get = userinfo.factory( opts, clbk );
+const get = userinfo.factory( opts, clbk );
get();
get();
@@ -159,9 +159,9 @@ The factory method accepts the same `options` as [`userinfo()`](#userinfo).
```javascript
-var userinfo = require( 'github-user-details' );
+const userinfo = require( 'github-user-details' );
-var opts = {
+const opts = {
'usernames': [
'kgryte',
'planeshifter',
diff --git a/lib/node_modules/@stdlib/_tools/github/user-orgs/README.md b/lib/node_modules/@stdlib/_tools/github/user-orgs/README.md
index 48fc3db6ab7..c619a05fd2a 100644
--- a/lib/node_modules/@stdlib/_tools/github/user-orgs/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/user-orgs/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var orgs = require( '@stdlib/_tools/github/user-orgs' );
+const orgs = require( '@stdlib/_tools/github/user-orgs' );
```
@@ -49,7 +49,7 @@ Gets a user's [organization memberships][github-user-orgs].
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -82,7 +82,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -94,7 +94,7 @@ To get the [organization memberships][github-user-orgs] of a particular user, se
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -106,7 +106,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'useragent': 'hello-github!'
};
@@ -120,12 +120,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'token': 'tkjorjk34ek3nj4!'
};
-var get = orgs.factory( opts, clbk );
+const get = orgs.factory( opts, clbk );
get();
get();
@@ -167,9 +167,9 @@ The factory method accepts the same `options` as [`orgs()`](#orgs).
```javascript
-var orgs = require( '@stdlib/_tools/github/user-orgs' );
+const orgs = require( '@stdlib/_tools/github/user-orgs' );
-var opts = {
+const opts = {
'username': 'kgryte',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/user-rate-limit/README.md b/lib/node_modules/@stdlib/_tools/github/user-rate-limit/README.md
index 8b72ca46aff..ddf8108180a 100644
--- a/lib/node_modules/@stdlib/_tools/github/user-rate-limit/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/user-rate-limit/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var ratelimit = require( '@stdlib/_tools/github/user-rate-limit' );
+const ratelimit = require( '@stdlib/_tools/github/user-rate-limit' );
```
@@ -49,7 +49,7 @@ Gets a user's [rate limit][github-rate-limit] status.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -87,7 +87,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -99,7 +99,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
@@ -114,12 +114,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'hello-github!'
};
-var get = ratelimit.factory( opts, clbk );
+const get = ratelimit.factory( opts, clbk );
get();
get();
@@ -150,9 +150,9 @@ The factory method accepts the same `options` as [`ratelimit()`](#ratelimit).
```javascript
-var ratelimit = require( '@stdlib/_tools/github/user-rate-limit' );
+const ratelimit = require( '@stdlib/_tools/github/user-rate-limit' );
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/user-repos/README.md b/lib/node_modules/@stdlib/_tools/github/user-repos/README.md
index c8e37f05b16..bdd3f0394ee 100644
--- a/lib/node_modules/@stdlib/_tools/github/user-repos/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/user-repos/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var repos = require( '@stdlib/_tools/github/user-repos' );
+const repos = require( '@stdlib/_tools/github/user-repos' );
```
@@ -49,7 +49,7 @@ Gets meta data for [repositories][github-repos] associated with a user.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte'
};
@@ -86,7 +86,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!'
};
@@ -98,7 +98,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'useragent': 'hello-github!'
};
@@ -111,7 +111,7 @@ To return repositories of a particular [type][github-repos], set the `type` opti
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'type': 'owner'
};
@@ -124,7 +124,7 @@ To return repositories of a particular [visibility][github-repos], set the `visi
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'visibility': 'private'
};
@@ -137,7 +137,7 @@ To return repositories of a particular [affiliation][github-repos], set the `aff
```javascript
-var opts = {
+const opts = {
'token': 'tkjorjk34ek3nj4!',
'affiliation': 'collaborator,organization_member'
};
@@ -152,12 +152,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'username': 'kgryte',
'token': 'tkjorjk34ek3nj4!'
};
-var get = repos.factory( opts, clbk );
+const get = repos.factory( opts, clbk );
get();
get();
@@ -197,9 +197,9 @@ The factory method accepts the same `options` as [`repos()`](#repos).
## Examples
```javascript
-var repos = require( '@stdlib/_tools/github/user-repos' );
+const repos = require( '@stdlib/_tools/github/user-repos' );
-var opts = {
+const opts = {
'username': 'kgryte',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/github/workflow-runs/README.md b/lib/node_modules/@stdlib/_tools/github/workflow-runs/README.md
index 77088d3d9d6..2137ff89dae 100644
--- a/lib/node_modules/@stdlib/_tools/github/workflow-runs/README.md
+++ b/lib/node_modules/@stdlib/_tools/github/workflow-runs/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var workflowRuns = require( '@stdlib/_tools/github/workflow-runs' );
+const workflowRuns = require( '@stdlib/_tools/github/workflow-runs' );
```
@@ -49,7 +49,7 @@ Gets all [workflow runs][github-workflow-runs] for a repository.
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/utils-noop'
};
@@ -85,7 +85,7 @@ To [authenticate][github-oauth2] with GitHub, set the [`token`][github-token] op
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/utils-noop',
'token': 'tkjorjk34ek3nj4!'
};
@@ -98,7 +98,7 @@ To specify a [user agent][github-user-agent], set the `useragent` option.
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/utils-noop',
'useragent': 'hello-github!'
};
@@ -111,7 +111,7 @@ To only return workflow runs associated with a particular branch, set the `branc
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/stdlib',
'branch': 'develop'
};
@@ -124,7 +124,7 @@ To only return workflow runs by a certain user (i.e., the user who created the p
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/stdlib',
'actor': 'Planeshifter'
};
@@ -137,7 +137,7 @@ To only return workflow runs triggered by a certain event, set the `event` optio
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/stdlib',
'event': 'workflow_dispatch'
};
@@ -150,7 +150,7 @@ To only return workflow runs with the specified check run status or conclusion,
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/stdlib',
'status': 'in_progress'
};
@@ -165,12 +165,12 @@ Creates a reusable `function`.
```javascript
-var opts = {
+const opts = {
'slug': 'stdlib-js/utils-noop',
'token': 'tkjorjk34ek3nj4!'
};
-var get = workflowRuns.factory( opts, clbk );
+const get = workflowRuns.factory( opts, clbk );
get();
get();
@@ -206,9 +206,9 @@ The factory method accepts the same `options` as [`workflowRuns()`](#workflow-ru
## Examples
```javascript
-var workflowRuns = require( '@stdlib/_tools/github/workflow-runs' );
+const workflowRuns = require( '@stdlib/_tools/github/workflow-runs' );
-var opts = {
+const opts = {
'slug': 'stdlib-js/utils-noop',
'useragent': 'beep-boop-bop'
};
diff --git a/lib/node_modules/@stdlib/_tools/licenses/header-regexp-table/README.md b/lib/node_modules/@stdlib/_tools/licenses/header-regexp-table/README.md
index 3898a1b4970..4ab09cee2a6 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/header-regexp-table/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/header-regexp-table/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var createTable = require( '@stdlib/_tools/licenses/header-regexp-table' );
+const createTable = require( '@stdlib/_tools/licenses/header-regexp-table' );
```
#### createTable( license\[, types] )
@@ -45,17 +45,17 @@ var createTable = require( '@stdlib/_tools/licenses/header-regexp-table' );
Returns an `object` mapping file `types` to [license header][@stdlib/_tools/licenses/header-regexp] regular expressions.
```javascript
-var out = createTable( 'Apache-2.0' );
+const out = createTable( 'Apache-2.0' );
// returns {...}
```
By default, the function returns an `object` whose keys are filename extensions of known supported file types. To specify a custom list, provide a `types` argument.
```javascript
-var out = createTable( 'Apache-2.0', [ 'js', 'julia' ] );
+const out = createTable( 'Apache-2.0', [ 'js', 'julia' ] );
// returns {...}
-var re = out.js;
+let re = out.js;
// returns
re = out.julia;
@@ -65,10 +65,10 @@ re = out.julia;
If provided the file type value `'default'`, the function generates a regular expression capable of matching multiple file types based on common comment markers.
```javascript
-var out = createTable( 'Apache-2.0', [ 'default' ] );
+const out = createTable( 'Apache-2.0', [ 'default' ] );
// returns {...}
-var re = out.default;
+const re = out.default;
// returns
```
@@ -115,21 +115,21 @@ var re = out.default;
```javascript
-var readFileSync = require( '@stdlib/fs/read-file' ).sync;
-var extname = require( '@stdlib/utils/extname' );
-var createTable = require( '@stdlib/_tools/licenses/header-regexp-table' );
+const readFileSync = require( '@stdlib/fs/read-file' ).sync;
+const extname = require( '@stdlib/utils/extname' );
+const createTable = require( '@stdlib/_tools/licenses/header-regexp-table' );
// Generate a license header regular expression table:
-var table = createTable( 'Apache-2.0' );
+const table = createTable( 'Apache-2.0' );
// Read the current file:
-var fopts = {
+const fopts = {
'encoding': 'utf8'
};
-var file = readFileSync( __filename, fopts );
+const file = readFileSync( __filename, fopts );
// Determine the filename extension:
-var ext = extname( __filename ).substring( 1 ); // omit the leading `.`
+const ext = extname( __filename ).substring( 1 ); // omit the leading `.`
// Test if the file has a license header:
console.log( table[ ext ].test( file ) );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/header-regexp/README.md b/lib/node_modules/@stdlib/_tools/licenses/header-regexp/README.md
index 6e414243ada..93e5dfb7622 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/header-regexp/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/header-regexp/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
+const headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
```
#### headerRegExp( license, type )
@@ -45,14 +45,14 @@ var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
Returns a [license header][@stdlib/_tools/licenses/header] regular expression provided a `license` SPDX identifier and file `type`.
```javascript
-var re = headerRegExp( 'Apache-2.0', 'Julia' );
+const re = headerRegExp( 'Apache-2.0', 'Julia' );
// returns
```
If provided an unsupported file `type`, the function returns `null`.
```javascript
-var re = headerRegExp( 'Apache-2.0', 'beepboopbop' );
+const re = headerRegExp( 'Apache-2.0', 'beepboopbop' );
// returns null
```
@@ -77,21 +77,21 @@ var re = headerRegExp( 'Apache-2.0', 'beepboopbop' );
```javascript
-var join = require( 'path' ).join;
-var readFileSync = require( '@stdlib/fs/read-file' ).sync;
-var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
+const join = require( 'path' ).join;
+const readFileSync = require( '@stdlib/fs/read-file' ).sync;
+const headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
// Read a JavaScript file:
-var fopts = {
+const fopts = {
'encoding': 'utf8'
};
-var file = readFileSync( join( __dirname, 'examples', 'index.js' ), fopts );
+const file = readFileSync( join( __dirname, 'examples', 'index.js' ), fopts );
// Generate a license header regular expression:
-var re = headerRegExp( 'Apache-2.0', 'js' );
+const re = headerRegExp( 'Apache-2.0', 'js' );
// Test if the file has a license header:
-var bool = re.test( file );
+const bool = re.test( file );
// returns
```
diff --git a/lib/node_modules/@stdlib/_tools/licenses/header/README.md b/lib/node_modules/@stdlib/_tools/licenses/header/README.md
index 30db2c448bc..c62a3dd2c4c 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/header/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/header/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var licenseHeader = require( '@stdlib/_tools/licenses/header' );
+const licenseHeader = require( '@stdlib/_tools/licenses/header' );
```
#### licenseHeader( license, type\[, options] )
@@ -45,7 +45,7 @@ var licenseHeader = require( '@stdlib/_tools/licenses/header' );
Returns a license header provided a `license` SPDX identifier and file `type`.
```javascript
-var h = licenseHeader( 'Apache-2.0', 'Julia' );
+const h = licenseHeader( 'Apache-2.0', 'Julia' );
```
```julia
@@ -75,12 +75,12 @@ The function supports the following `options`:
To set the copyright line, set the relevant options.
```javascript
-var opts = {
+const opts = {
'year': 2018,
'copyright': 'Jane Doe'
};
-var h = licenseHeader( 'Apache-2.0', 'Julia', opts );
+const h = licenseHeader( 'Apache-2.0', 'Julia', opts );
```
```julia
@@ -105,7 +105,7 @@ var h = licenseHeader( 'Apache-2.0', 'Julia', opts );
If provided an unsupported file `type`, the function returns `null`.
```javascript
-var h = licenseHeader( 'Apache-2.0', 'beepboopbop' );
+const h = licenseHeader( 'Apache-2.0', 'beepboopbop' );
// returns null
```
@@ -138,14 +138,14 @@ var h = licenseHeader( 'Apache-2.0', 'beepboopbop' );
```javascript
-var licenseHeader = require( '@stdlib/_tools/licenses/header' );
+const licenseHeader = require( '@stdlib/_tools/licenses/header' );
-var opts = {
+const opts = {
'year': 2018,
'copyright': 'The Stdlib Authors'
};
-var h = licenseHeader( 'Apache-2.0', 'Fortran', opts );
+const h = licenseHeader( 'Apache-2.0', 'Fortran', opts );
```
```fortran
diff --git a/lib/node_modules/@stdlib/_tools/licenses/infer/README.md b/lib/node_modules/@stdlib/_tools/licenses/infer/README.md
index 77d207d97da..95a06d48de8 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/infer/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/infer/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var infer = require( '@stdlib/_tools/licenses/infer' );
+const infer = require( '@stdlib/_tools/licenses/infer' );
```
#### infer( pkgs, pattern, clbk )
@@ -41,9 +41,9 @@ var infer = require( '@stdlib/_tools/licenses/infer' );
Infers license information from the content of files found using a provided glob `pattern`.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
-var pattern = '{readme*,licen[cs]e*,copying*}';
+const pattern = '{readme*,licen[cs]e*,copying*}';
licenses( onResults );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/insert-header-file-list/README.md b/lib/node_modules/@stdlib/_tools/licenses/insert-header-file-list/README.md
index bf7ac4a2757..76d24fdc2b9 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/insert-header-file-list/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/insert-header-file-list/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' );
+const insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' );
```
#### insertHeader( files, header, clbk )
@@ -37,13 +37,13 @@ Asynchronously inserts a [license header][@stdlib/_tools/licenses/header] into e
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'examples', 'index.js' )
];
-var header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
+const header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
insertHeader( files, header, done );
@@ -59,14 +59,14 @@ To insert [license headers][@stdlib/_tools/licenses/header] using an `object` wh
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'README.md' ),
join( __dirname, 'examples', 'index.js' )
];
-var header = {
+const header = {
// JavaScript files:
'js': '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0',
@@ -98,15 +98,15 @@ Synchronously inserts a [license header][@stdlib/_tools/licenses/header] into ea
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'examples', 'index.js' )
];
-var header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
+const header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
-var err = insertHeader.sync( files, header );
+const err = insertHeader.sync( files, header );
if ( err ) {
throw err;
}
@@ -135,28 +135,28 @@ if ( err ) {
```javascript
-var join = require( 'path' ).join;
-var readFile = require( '@stdlib/fs/read-file' ).sync;
-var writeFile = require( '@stdlib/fs/write-file' ).sync;
-var unlink = require( '@stdlib/fs/unlink' ).sync;
-var licenseHeader = require( '@stdlib/_tools/licenses/header' );
-var insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' );
+const join = require( 'path' ).join;
+const readFile = require( '@stdlib/fs/read-file' ).sync;
+const writeFile = require( '@stdlib/fs/write-file' ).sync;
+const unlink = require( '@stdlib/fs/unlink' ).sync;
+const licenseHeader = require( '@stdlib/_tools/licenses/header' );
+const insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' );
// Create a temporary file:
-var src = join( __dirname, 'examples', 'fixtures', 'file.js.txt' );
-var tmp = join( __dirname, 'examples', 'fixtures', 'tmp.js.txt' );
-var err = writeFile( tmp, readFile( src ) );
+const src = join( __dirname, 'examples', 'fixtures', 'file.js.txt' );
+const tmp = join( __dirname, 'examples', 'fixtures', 'tmp.js.txt' );
+let err = writeFile( tmp, readFile( src ) );
if ( err ) {
throw err;
}
// Specify a list of files in which to insert headers:
-var files = [
+const files = [
tmp
];
// Create a header object containing license headers:
-var headers = {
+const headers = {
'txt': licenseHeader( 'Apache-2.0', 'js', {
'year': 2018,
'copyright': 'The Stdlib Authors'
diff --git a/lib/node_modules/@stdlib/_tools/licenses/insert-header/README.md b/lib/node_modules/@stdlib/_tools/licenses/insert-header/README.md
index cbd9525a65a..734e6afcde8 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/insert-header/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/insert-header/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var insertHeader = require( '@stdlib/_tools/licenses/insert-header' );
+const insertHeader = require( '@stdlib/_tools/licenses/insert-header' );
```
#### insertHeader( src, header )
@@ -45,10 +45,10 @@ var insertHeader = require( '@stdlib/_tools/licenses/insert-header' );
Inserts a provided [license `header`][@stdlib/_tools/licenses/header] into a source code `string` (or [`Buffer`][@stdlib/buffer/ctor]).
```javascript
-var licenseHeader = require( '@stdlib/_tools/licenses/header' );
+const licenseHeader = require( '@stdlib/_tools/licenses/header' );
// Source code string:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'',
'echo "beep"',
@@ -57,11 +57,11 @@ var src = [
src = src.join( '\n' );
// Generate a license header:
-var opts = {
+const opts = {
'year': 2018,
'copyright': 'The Stdlib Authors'
};
-var h = licenseHeader( 'Apache-2.0', 'bash', opts );
+const h = licenseHeader( 'Apache-2.0', 'bash', opts );
// Insert the header:
src = insertHeader( src, h );
@@ -94,11 +94,11 @@ echo "beep"
If provided a source code [`Buffer`][@stdlib/buffer/ctor], the function returns a [`Buffer`][@stdlib/buffer/ctor].
```javascript
-var string2buffer = require( '@stdlib/buffer/from-string' );
-var licenseHeader = require( '@stdlib/_tools/licenses/header' );
+const string2buffer = require( '@stdlib/buffer/from-string' );
+const licenseHeader = require( '@stdlib/_tools/licenses/header' );
// Source code buffer:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'',
'echo "beep"',
@@ -107,11 +107,11 @@ var src = [
src = string2buffer( src.join( '\n' ) );
// Generate a license header:
-var opts = {
+const opts = {
'year': 2018,
'copyright': 'The Stdlib Authors'
};
-var h = licenseHeader( 'Apache-2.0', 'bash', opts );
+const h = licenseHeader( 'Apache-2.0', 'bash', opts );
// Insert the header:
src = insertHeader( src, h );
@@ -163,26 +163,26 @@ echo "beep"
```javascript
-var join = require( 'path' ).join;
-var readFileSync = require( '@stdlib/fs/read-file' ).sync;
-var licenseHeader = require( '@stdlib/_tools/licenses/header' );
-var insertHeader = require( '@stdlib/_tools/licenses/insert-header' );
+const join = require( 'path' ).join;
+const readFileSync = require( '@stdlib/fs/read-file' ).sync;
+const licenseHeader = require( '@stdlib/_tools/licenses/header' );
+const insertHeader = require( '@stdlib/_tools/licenses/insert-header' );
// Generate a license header:
-var opts = {
+const opts = {
'year': 2018,
'copyright': 'The Stdlib Authors'
};
-var h = licenseHeader( 'Apache-2.0', 'fortran', opts );
+const h = licenseHeader( 'Apache-2.0', 'fortran', opts );
// Load a Fortran file:
-var fopts = {
+const fopts = {
'encoding': 'utf8'
};
-var fpath = join( __dirname, 'examples', 'fixtures', 'file.f.txt' );
-var file = readFileSync( fpath, fopts );
+const fpath = join( __dirname, 'examples', 'fixtures', 'file.f.txt' );
+let file = readFileSync( fpath, fopts );
// Insert the license header:
file = insertHeader( file, h );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md b/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md
index 969238412f3..ce944281d44 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
```
#### licenses( \[options], clbk )
@@ -60,7 +60,7 @@ The function accepts the following `options`:
By default, the function searches the entire dependency tree. To limit the search depth, set the `depth` option.
```javascript
-var opts = {
+const opts = {
'depth': 0 // search only top-level installed packages
};
@@ -77,7 +77,7 @@ function onResults( error, results ) {
To exclude development dependencies, set the `dev` option to `false`.
```javascript
-var opts = {
+const opts = {
'dev': false
};
diff --git a/lib/node_modules/@stdlib/_tools/licenses/remove-header-file-list/README.md b/lib/node_modules/@stdlib/_tools/licenses/remove-header-file-list/README.md
index 56f697014f8..2f3063eff67 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/remove-header-file-list/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/remove-header-file-list/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var removeHeader = require( '@stdlib/_tools/licenses/remove-header-file-list' );
+const removeHeader = require( '@stdlib/_tools/licenses/remove-header-file-list' );
```
#### removeHeader( files, header, clbk )
@@ -37,13 +37,13 @@ Asynchronously [removes][@stdlib/_tools/licenses/remove-header] a [license heade
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'examples', 'index.js' )
];
-var header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
+const header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
removeHeader( files, header, done );
@@ -59,14 +59,14 @@ To remove [license headers][@stdlib/_tools/licenses/header] using an `object` wh
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'README.md' ),
join( __dirname, 'examples', 'index.js' )
];
-var header = {
+const header = {
// JavaScript files:
'js': '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0',
@@ -98,15 +98,15 @@ Synchronously [removes][@stdlib/_tools/licenses/remove-header] a [license header
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'examples', 'index.js' )
];
-var header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
+const header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
-var err = removeHeader.sync( files, header );
+const err = removeHeader.sync( files, header );
if ( err ) {
throw err;
}
@@ -134,28 +134,28 @@ if ( err ) {
```javascript
-var join = require( 'path' ).join;
-var readFile = require( '@stdlib/fs/read-file' ).sync;
-var writeFile = require( '@stdlib/fs/write-file' ).sync;
-var unlink = require( '@stdlib/fs/unlink' ).sync;
-var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
-var removeHeader = require( '@stdlib/_tools/licenses/remove-header-file-list' );
+const join = require( 'path' ).join;
+const readFile = require( '@stdlib/fs/read-file' ).sync;
+const writeFile = require( '@stdlib/fs/write-file' ).sync;
+const unlink = require( '@stdlib/fs/unlink' ).sync;
+const headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
+const removeHeader = require( '@stdlib/_tools/licenses/remove-header-file-list' );
// Create a temporary file:
-var src = join( __dirname, 'examples', 'fixtures', 'file.js.txt' );
-var tmp = join( __dirname, 'examples', 'fixtures', 'tmp.js.txt' );
-var err = writeFile( tmp, readFile( src ) );
+const src = join( __dirname, 'examples', 'fixtures', 'file.js.txt' );
+const tmp = join( __dirname, 'examples', 'fixtures', 'tmp.js.txt' );
+let err = writeFile( tmp, readFile( src ) );
if ( err ) {
throw err;
}
// Specify a list of files in which to remove headers:
-var files = [
+const files = [
tmp
];
// Generate a header regular expression:
-var headers = {
+const headers = {
'txt': headerRegExp( 'Apache-2.0', 'js' )
};
diff --git a/lib/node_modules/@stdlib/_tools/licenses/remove-header/README.md b/lib/node_modules/@stdlib/_tools/licenses/remove-header/README.md
index 89983b4496b..2b828905b8a 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/remove-header/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/remove-header/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var removeHeader = require( '@stdlib/_tools/licenses/remove-header' );
+const removeHeader = require( '@stdlib/_tools/licenses/remove-header' );
```
#### removeHeader( src, header )
@@ -46,7 +46,7 @@ Removes a provided [license `header`][@stdlib/_tools/licenses/header] from a sou
```javascript
// Source code string:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'#',
'# @license Apache-2.0',
@@ -57,7 +57,7 @@ var src = [
src = src.join( '\n' );
// Header string:
-var h = '#\n# @license Apache-2.0';
+const h = '#\n# @license Apache-2.0';
// Remove the header:
src = removeHeader( src, h );
@@ -74,10 +74,10 @@ echo "beep"
If provided a source code [`Buffer`][@stdlib/buffer/ctor], the function returns a [`Buffer`][@stdlib/buffer/ctor].
```javascript
-var string2buffer = require( '@stdlib/buffer/from-string' );
+const string2buffer = require( '@stdlib/buffer/from-string' );
// Source code buffer:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'#',
'# @license Apache-2.0',
@@ -88,7 +88,7 @@ var src = [
src = string2buffer( src.join( '\n' ) );
// Header string:
-var h = '#\n# @license Apache-2.0';
+const h = '#\n# @license Apache-2.0';
// Remove the header:
src = removeHeader( src, h );
@@ -107,7 +107,7 @@ If provided a `header` argument which is either a `string` or [`Buffer`][@stdlib
```javascript
// Source code string:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'#',
'# @license Apache-2.0',
@@ -118,7 +118,7 @@ var src = [
src = src.join( '\n' );
// Header regular expression:
-var re = /#\n# @license Apache-2\.0\n\n/;
+const re = /#\n# @license Apache-2\.0\n\n/;
// Remove the header:
src = removeHeader( src, re );
@@ -152,24 +152,24 @@ echo "beep"
```javascript
-var join = require( 'path' ).join;
-var readFileSync = require( '@stdlib/fs/read-file' ).sync;
-var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
-var removeHeader = require( '@stdlib/_tools/licenses/remove-header' );
+const join = require( 'path' ).join;
+const readFileSync = require( '@stdlib/fs/read-file' ).sync;
+const headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
+const removeHeader = require( '@stdlib/_tools/licenses/remove-header' );
// Generate a license header regular expression:
-var re = headerRegExp( 'Apache-2.0', 'fortran' );
+let re = headerRegExp( 'Apache-2.0', 'fortran' );
// Modify the regular expression to remove an additional padded line:
re = new RegExp( re.source+'\n' );
// Load a Fortran file:
-var fopts = {
+const fopts = {
'encoding': 'utf8'
};
-var fpath = join( __dirname, 'examples', 'fixtures', 'file.f.txt' );
-var file = readFileSync( fpath, fopts );
+const fpath = join( __dirname, 'examples', 'fixtures', 'file.f.txt' );
+let file = readFileSync( fpath, fopts );
// Remove license header:
file = removeHeader( file, re );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/reporters/ambiguous/README.md b/lib/node_modules/@stdlib/_tools/licenses/reporters/ambiguous/README.md
index 84376718f75..b5f5423a468 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/reporters/ambiguous/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/reporters/ambiguous/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var reporter = require( '@stdlib/_tools/licenses/reporters/ambiguous' );
+const reporter = require( '@stdlib/_tools/licenses/reporters/ambiguous' );
```
#### reporter( results )
@@ -41,7 +41,7 @@ var reporter = require( '@stdlib/_tools/licenses/reporters/ambiguous' );
Filters licenses results for packages having ambiguous license information.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
licenses( onResults );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/reporters/basic/README.md b/lib/node_modules/@stdlib/_tools/licenses/reporters/basic/README.md
index 5b6fd40ea4f..eeaac86d3c8 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/reporters/basic/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/reporters/basic/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var reporter = require( '@stdlib/_tools/licenses/reporters/basic' );
+const reporter = require( '@stdlib/_tools/licenses/reporters/basic' );
```
#### reporter( results )
@@ -41,7 +41,7 @@ var reporter = require( '@stdlib/_tools/licenses/reporters/basic' );
Returns (unfiltered) license results.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
licenses( onResults );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/reporters/group/README.md b/lib/node_modules/@stdlib/_tools/licenses/reporters/group/README.md
index 52aa9f04e18..e9a7d0e7fdc 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/reporters/group/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/reporters/group/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var reporter = require( '@stdlib/_tools/licenses/reporters/group' );
+const reporter = require( '@stdlib/_tools/licenses/reporters/group' );
```
#### reporter( results )
@@ -41,7 +41,7 @@ var reporter = require( '@stdlib/_tools/licenses/reporters/group' );
Groups license results by license type.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
licenses( onResults );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/reporters/no-license/README.md b/lib/node_modules/@stdlib/_tools/licenses/reporters/no-license/README.md
index 92aab91c9c4..5229d316850 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/reporters/no-license/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/reporters/no-license/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var reporter = require( '@stdlib/_tools/licenses/reporters/no-license' );
+const reporter = require( '@stdlib/_tools/licenses/reporters/no-license' );
```
#### reporter( results )
@@ -41,7 +41,7 @@ var reporter = require( '@stdlib/_tools/licenses/reporters/no-license' );
Filters licenses results for packages not having a license.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
licenses( onResults );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/reporters/root-deps/README.md b/lib/node_modules/@stdlib/_tools/licenses/reporters/root-deps/README.md
index 5902ad92605..1c912f0569e 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/reporters/root-deps/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/reporters/root-deps/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var reporter = require( '@stdlib/_tools/licenses/reporters/root-deps' );
+const reporter = require( '@stdlib/_tools/licenses/reporters/root-deps' );
```
#### reporter( results, bool )
@@ -41,7 +41,7 @@ var reporter = require( '@stdlib/_tools/licenses/reporters/root-deps' );
Reporter which filters license results for packages directly depended on by the root package. To include dev dependencies, set `bool` to `true`.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
licenses( onResults );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/reporters/summary/README.md b/lib/node_modules/@stdlib/_tools/licenses/reporters/summary/README.md
index efa41d6fb52..d7e9e148da3 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/reporters/summary/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/reporters/summary/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var reporter = require( '@stdlib/_tools/licenses/reporters/summary' );
+const reporter = require( '@stdlib/_tools/licenses/reporters/summary' );
```
#### reporter( results )
@@ -41,7 +41,7 @@ var reporter = require( '@stdlib/_tools/licenses/reporters/summary' );
Summarizes license results.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
licenses( onResults );
diff --git a/lib/node_modules/@stdlib/_tools/licenses/reporters/whitelist/README.md b/lib/node_modules/@stdlib/_tools/licenses/reporters/whitelist/README.md
index a3436144be4..afbc6baeef9 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/reporters/whitelist/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/reporters/whitelist/README.md
@@ -33,7 +33,7 @@ limitations under the License.
## Usage
```javascript
-var reporter = require( '@stdlib/_tools/licenses/reporters/whitelist' );
+const reporter = require( '@stdlib/_tools/licenses/reporters/whitelist' );
```
#### reporter( results, exclude )
@@ -41,9 +41,9 @@ var reporter = require( '@stdlib/_tools/licenses/reporters/whitelist' );
Excludes licenses results for packages having a license matching an SPDX identifier in a provided `exclude` list.
```javascript
-var licenses = require( '@stdlib/_tools/licenses/licenses' );
+const licenses = require( '@stdlib/_tools/licenses/licenses' );
-var whitelist = [
+const whitelist = [
'Apache-2.0',
'Artistic-2.0',
'BSD-2-Clause',
diff --git a/lib/node_modules/@stdlib/_tools/licenses/update-header-file-list/README.md b/lib/node_modules/@stdlib/_tools/licenses/update-header-file-list/README.md
index f5315aa14fd..3181048b744 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/update-header-file-list/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/update-header-file-list/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var updateHeader = require( '@stdlib/_tools/licenses/update-header-file-list' );
+const updateHeader = require( '@stdlib/_tools/licenses/update-header-file-list' );
```
#### updateHeader( files, old, header, clbk )
@@ -37,14 +37,14 @@ Asynchronously [updates][@stdlib/_tools/licenses/update-header] a [license heade
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'examples', 'index.js' )
];
-var old = '// @license Apache-2.0';
-var header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
+const old = '// @license Apache-2.0';
+const header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
updateHeader( files, old, header, done );
@@ -60,14 +60,14 @@ Both `old` and `header` arguments may be objects whose keys are filename extensi
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'README.md' ),
join( __dirname, 'examples', 'index.js' )
];
-var old = {
+const old = {
// JavaScript files:
'js': '// @license MIT',
@@ -81,7 +81,7 @@ var old = {
'default': /(?:#|\/\*|\/\/|
```javascript
-var join = require( 'path' ).join;
+const join = require( 'path' ).join;
-var files = [
+const files = [
join( __dirname, 'examples', 'index.js' )
];
-var old = '// @license MIT';
-var header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
+const old = '// @license MIT';
+const header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
-var err = updateHeader.sync( files, old, header );
+const err = updateHeader.sync( files, old, header );
if ( err ) {
throw err;
}
@@ -150,29 +150,29 @@ if ( err ) {
```javascript
-var join = require( 'path' ).join;
-var readFile = require( '@stdlib/fs/read-file' ).sync;
-var writeFile = require( '@stdlib/fs/write-file' ).sync;
-var unlink = require( '@stdlib/fs/unlink' ).sync;
-var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
-var licenseHeader = require( '@stdlib/_tools/licenses/header' );
-var updateHeader = require( '@stdlib/_tools/licenses/update-header-file-list' );
+const join = require( 'path' ).join;
+const readFile = require( '@stdlib/fs/read-file' ).sync;
+const writeFile = require( '@stdlib/fs/write-file' ).sync;
+const unlink = require( '@stdlib/fs/unlink' ).sync;
+const headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
+const licenseHeader = require( '@stdlib/_tools/licenses/header' );
+const updateHeader = require( '@stdlib/_tools/licenses/update-header-file-list' );
// Create a temporary file:
-var src = join( __dirname, 'examples', 'fixtures', 'file.js.txt' );
-var tmp = join( __dirname, 'examples', 'fixtures', 'tmp.js.txt' );
-var err = writeFile( tmp, readFile( src ) );
+const src = join( __dirname, 'examples', 'fixtures', 'file.js.txt' );
+const tmp = join( __dirname, 'examples', 'fixtures', 'tmp.js.txt' );
+let err = writeFile( tmp, readFile( src ) );
if ( err ) {
throw err;
}
// Specify a list of files in which to update headers:
-var files = [
+const files = [
tmp
];
// Generate a header regular expression:
-var old = {
+const old = {
'txt': headerRegExp( 'Apache-2.0', 'js' )
};
@@ -180,7 +180,7 @@ var old = {
old.txt = new RegExp( old.txt.source+'\n' );
// Generate a license header:
-var header = {
+const header = {
'txt': licenseHeader( 'Apache-2.0', 'js', {
'year': 2018,
'copyright': 'Jane Doe'
diff --git a/lib/node_modules/@stdlib/_tools/licenses/update-header/README.md b/lib/node_modules/@stdlib/_tools/licenses/update-header/README.md
index 90ba09e8faf..08585257f4e 100644
--- a/lib/node_modules/@stdlib/_tools/licenses/update-header/README.md
+++ b/lib/node_modules/@stdlib/_tools/licenses/update-header/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var updateHeader = require( '@stdlib/_tools/licenses/update-header' );
+const updateHeader = require( '@stdlib/_tools/licenses/update-header' );
```
#### updateHeader( src, old, header )
@@ -46,7 +46,7 @@ Replaces an existing [license header][@stdlib/_tools/licenses/header] with a new
```javascript
// Source code string:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'#',
'# @license Apache-2.0',
@@ -57,10 +57,10 @@ var src = [
src = src.join( '\n' );
// Old header string:
-var old = '#\n# @license Apache-2.0';
+const old = '#\n# @license Apache-2.0';
// New header string:
-var h = '#\n# @license MIT';
+const h = '#\n# @license MIT';
// Update the header:
src = updateHeader( src, old, h );
@@ -79,10 +79,10 @@ echo "beep"
If provided a source code [`Buffer`][@stdlib/buffer/ctor], the function returns a [`Buffer`][@stdlib/buffer/ctor].
```javascript
-var string2buffer = require( '@stdlib/buffer/from-string' );
+const string2buffer = require( '@stdlib/buffer/from-string' );
// Source code buffer:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'#',
'# @license Apache-2.0',
@@ -93,10 +93,10 @@ var src = [
src = string2buffer( src.join( '\n' ) );
// Old header string:
-var old = '#\n# @license Apache-2.0';
+const old = '#\n# @license Apache-2.0';
// New header string:
-var h = '#\n# @license MIT';
+const h = '#\n# @license MIT';
// Update the header:
src = updateHeader( src, old, h );
@@ -117,7 +117,7 @@ If provided a second argument which is either a `string` or [`Buffer`][@stdlib/b
```javascript
// Source code string:
-var src = [
+let src = [
'#!/usr/bin/env bash',
'#',
'# @license Apache-2.0',
@@ -128,10 +128,10 @@ var src = [
src = src.join( '\n' );
// Header regular expression:
-var re = /#\n# @license Apache-2\.0\n\n/;
+const re = /#\n# @license Apache-2\.0\n\n/;
// New header (empty):
-var h = '';
+const h = '';
// Update the header:
src = updateHeader( src, re, h );
@@ -165,24 +165,24 @@ echo "beep"
```javascript
-var join = require( 'path' ).join;
-var readFileSync = require( '@stdlib/fs/read-file' ).sync;
-var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
-var updateHeader = require( '@stdlib/_tools/licenses/update-header' );
+const join = require( 'path' ).join;
+const readFileSync = require( '@stdlib/fs/read-file' ).sync;
+const headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
+const updateHeader = require( '@stdlib/_tools/licenses/update-header' );
// Generate a license header regular expression:
-var re = headerRegExp( 'Apache-2.0', 'fortran' );
+const re = headerRegExp( 'Apache-2.0', 'fortran' );
// Specify a new license header:
-var h = '!> @license Apache-2.0';
+const h = '!> @license Apache-2.0';
// Load a Fortran file:
-var fopts = {
+const fopts = {
'encoding': 'utf8'
};
-var fpath = join( __dirname, 'examples', 'fixtures', 'file.f.txt' );
-var file = readFileSync( fpath, fopts );
+const fpath = join( __dirname, 'examples', 'fixtures', 'file.f.txt' );
+let file = readFileSync( fpath, fopts );
// Update license header:
file = updateHeader( file, re, h );
diff --git a/lib/node_modules/@stdlib/_tools/links/create/README.md b/lib/node_modules/@stdlib/_tools/links/create/README.md
index ae6306ce658..049e3d0370f 100644
--- a/lib/node_modules/@stdlib/_tools/links/create/README.md
+++ b/lib/node_modules/@stdlib/_tools/links/create/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var create = require( '@stdlib/_tools/links/create' );
+const create = require( '@stdlib/_tools/links/create' );
```
@@ -49,7 +49,7 @@ Creates a link entry in a link database.
```javascript
-var opts = {
+const opts = {
'uri': 'https://stdlib.io',
'id': 'stdlib',
'description': 'A standard library for JavaScript and Node.js.'
@@ -78,7 +78,7 @@ To specify keywords which pertain to the link, set the `keywords` option.
```javascript
-var opts = {
+const opts = {
'uri': 'https://stdlib.io',
'id': 'stdlib',
'description': 'A standard library for JavaScript and Node.js.',
@@ -107,7 +107,7 @@ To insert the link into a particular link database, set the `database` option.
```javascript
-var opts = {
+const opts = {
'uri': 'https://stdlib.io',
'id': 'stdlib',
'description': 'A standard library for JavaScript and Node.js.',
@@ -131,13 +131,13 @@ Synchronously inserts a link into a link database.
```javascript
-var opts = {
+const opts = {
'uri': 'https://stdlib.io',
'id': 'stdlib',
'description': 'A standard library for JavaScript and Node.js.'
};
-var err = create.sync( opts );
+const err = create.sync( opts );
if ( err ) {
throw err;
}
@@ -173,9 +173,9 @@ The method accepts the same `options` as [`create()`](#create-async) above.
```javascript
-var create = require( '@stdlib/_tools/links/create' );
+const create = require( '@stdlib/_tools/links/create' );
-var opts = {
+const opts = {
'uri': 'https://stdlib.io',
'id': 'stdlib',
'description': 'A standard library for JavaScript and Node.js.',
diff --git a/lib/node_modules/@stdlib/_tools/links/id2uri/README.md b/lib/node_modules/@stdlib/_tools/links/id2uri/README.md
index 742b013bea3..f3ff915ebb1 100644
--- a/lib/node_modules/@stdlib/_tools/links/id2uri/README.md
+++ b/lib/node_modules/@stdlib/_tools/links/id2uri/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var id2uri = require( '@stdlib/_tools/links/id2uri' );
+const id2uri = require( '@stdlib/_tools/links/id2uri' );
```
@@ -67,7 +67,7 @@ To use an alternative link database, set the `database` option.
```javascript
-var opts = {
+const opts = {
'database': './path/to/link/database/json'
};
@@ -86,7 +86,7 @@ function clbk( error, uri ) {
Synchronously returns the `URI` which corresponds to a provided `id`.
```javascript
-var uri = id2uri.sync( 'bibtex' );
+const uri = id2uri.sync( 'bibtex' );
if ( uri instanceof Error ) {
throw id;
}
@@ -122,7 +122,7 @@ The method accepts the same `options` as [`id2uri()`](#async) above.
```javascript
-var id2uri = require( '@stdlib/_tools/links/id2uri' );
+const id2uri = require( '@stdlib/_tools/links/id2uri' );
id2uri( 'stdlib', clbk );
diff --git a/lib/node_modules/@stdlib/_tools/links/uri2id/README.md b/lib/node_modules/@stdlib/_tools/links/uri2id/README.md
index 92504db863d..ded1b57e60c 100644
--- a/lib/node_modules/@stdlib/_tools/links/uri2id/README.md
+++ b/lib/node_modules/@stdlib/_tools/links/uri2id/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var uri2id = require( '@stdlib/_tools/links/uri2id' );
+const uri2id = require( '@stdlib/_tools/links/uri2id' );
```
@@ -67,7 +67,7 @@ To use an alternative link database, set the `database` option.
```javascript
-var opts = {
+const opts = {
'database': './path/to/link/database/json'
};
@@ -86,7 +86,7 @@ function clbk( error, id ) {
Synchronously returns the `id` which corresponds to a provided `URI`.
```javascript
-var id = uri2id.sync( 'http://www.bibtex.org/' );
+const id = uri2id.sync( 'http://www.bibtex.org/' );
if ( id instanceof Error ) {
throw id;
}
@@ -122,7 +122,7 @@ The method accepts the same `options` as [`uri2id()`](#async) above.
```javascript
-var uri2id = require( '@stdlib/_tools/links/uri2id' );
+const uri2id = require( '@stdlib/_tools/links/uri2id' );
uri2id( 'https://github.com/stdlib-js/stdlib', clbk );
diff --git a/lib/node_modules/@stdlib/_tools/links/validate/README.md b/lib/node_modules/@stdlib/_tools/links/validate/README.md
index d1993c9152a..832ac9eeba5 100644
--- a/lib/node_modules/@stdlib/_tools/links/validate/README.md
+++ b/lib/node_modules/@stdlib/_tools/links/validate/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var validateLinks = require( '@stdlib/_tools/links/validate' );
+const validateLinks = require( '@stdlib/_tools/links/validate' );
```
@@ -57,7 +57,7 @@ The function returns an `array` of validation errors, where each result is an `o
- `expected`: expected identifier (if applicable).
```javascript
-var links = [
+const links = [
{
'url': 'https://www.r-project.org/',
'id': 'r'
@@ -83,10 +83,10 @@ To use an alternative link database, set the `database` option.
```javascript
-var opts = {
+const opts = {
'database': './path/to/link/database/json'
};
-var links = [
+const links = [
{
'url': 'https://www.r-project.org/',
'id': 'r'
@@ -108,7 +108,7 @@ function clbk( error, validationErrors ) {
Synchronously validates an array of link objects and returns an `array` of validation errors.
```javascript
-var links = [
+const links = [
{
'url': 'https://www.r-project.org/',
'id': 'r'
@@ -118,7 +118,7 @@ var links = [
'id': 'r-project'
}
];
-var out = validateLinks.sync( links );
+const out = validateLinks.sync( links );
if ( out instanceof Error ) {
throw out;
}
@@ -153,9 +153,9 @@ The method accepts the same `options` as [`validateLinks()`](#async) above.
```javascript
-var validateLinks = require( '@stdlib/_tools/links/validate' );
+const validateLinks = require( '@stdlib/_tools/links/validate' );
-var links = [
+const links = [
{
'id': 'gumbel-distribution',
'url': 'https://en.wikipedia.org/wiki/Gumbel_distribution'
diff --git a/lib/node_modules/@stdlib/_tools/lint/filenames/README.md b/lib/node_modules/@stdlib/_tools/lint/filenames/README.md
index f38520c90fb..f3694a6c819 100644
--- a/lib/node_modules/@stdlib/_tools/lint/filenames/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/filenames/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/filenames' );
+const lint = require( '@stdlib/_tools/lint/filenames' );
```
#### lint( \[options,] clbk )
@@ -53,7 +53,7 @@ The function accepts the following `options`:
To search from a specific directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': './'
};
@@ -70,7 +70,7 @@ function onLint( error, errs ) {
To limit the filename search to a subset of files, set the `pattern` option.
```javascript
-var opts = {
+const opts = {
'pattern': '**/*.js'
};
@@ -89,7 +89,7 @@ function onLint( error, errs ) {
Synchronously lints filenames.
```javascript
-var errs = lint.sync();
+const errs = lint.sync();
// returns [...]
```
@@ -130,7 +130,7 @@ The function accepts the same `options` as `lint()` above.
```javascript
-var lint = require( '@stdlib/_tools/lint/filenames' );
+const lint = require( '@stdlib/_tools/lint/filenames' );
lint( onLint );
diff --git a/lib/node_modules/@stdlib/_tools/lint/header-filenames/README.md b/lib/node_modules/@stdlib/_tools/lint/header-filenames/README.md
index 9c83a25dc1a..e7516a0beb6 100644
--- a/lib/node_modules/@stdlib/_tools/lint/header-filenames/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/header-filenames/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/header-filenames' );
+const lint = require( '@stdlib/_tools/lint/header-filenames' );
```
#### lint( \[options,] clbk )
@@ -52,7 +52,7 @@ The function accepts the following `options`:
To search from a specific directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': './'
};
@@ -71,7 +71,7 @@ function onLint( error, errs ) {
Synchronously lints header filenames.
```javascript
-var errs = lint.sync();
+const errs = lint.sync();
// returns [...]
```
@@ -112,7 +112,7 @@ The function accepts the same `options` as `lint()` above.
```javascript
-var lint = require( '@stdlib/_tools/lint/header-filenames' );
+const lint = require( '@stdlib/_tools/lint/header-filenames' );
lint( onLint );
diff --git a/lib/node_modules/@stdlib/_tools/lint/license-header-file-list/README.md b/lib/node_modules/@stdlib/_tools/lint/license-header-file-list/README.md
index 71bb63d4f57..bff06be20d7 100644
--- a/lib/node_modules/@stdlib/_tools/lint/license-header-file-list/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/license-header-file-list/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/license-header-file-list' );
+const lint = require( '@stdlib/_tools/lint/license-header-file-list' );
```
#### lint( files, \[header,] clbk )
@@ -35,7 +35,7 @@ var lint = require( '@stdlib/_tools/lint/license-header-file-list' );
Asynchronously lints the [license header][@stdlib/_tools/licenses/header] for each file in a provided file list.
```javascript
-var files = [
+const files = [
__filename
];
@@ -52,11 +52,11 @@ function onLint( error, errs ) {
By default, the linter lints against an Apache-2.0 [license header][@stdlib/_tools/licenses/header] tailored to common filename extensions. To lint against an alternative [license header][@stdlib/_tools/licenses/header] or list of filename extensions, provide a `header` argument, which may be a `string`, [regular expression][mdn-regexp], or an `object` whose keys are filename extensions and whose values are [license header][@stdlib/_tools/licenses/header] `strings` or [regular expressions][mdn-regexp]. For example, to lint against a particular [license header][@stdlib/_tools/licenses/header] `string`,
```javascript
-var files = [
+const files = [
__filename
];
-var header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
+const header = '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0';
lint( files, header, onLint );
@@ -71,11 +71,11 @@ function onLint( error, errs ) {
To lint against a license header [regular expression][mdn-regexp],
```javascript
-var files = [
+const files = [
__filename
];
-var header = /\/\/ This file is a part of stdlib\. License is Apache-2\.0: http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0/;
+const header = /\/\/ This file is a part of stdlib\. License is Apache-2\.0: http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0/;
lint( files, header, onLint );
@@ -90,11 +90,11 @@ function onLint( error, errs ) {
To lint against an `object` containing license header `strings` and/or [regular expressions][mdn-regexp],
```javascript
-var files = [
+const files = [
__filename
];
-var header = {
+const header = {
// JavaScript files:
'js': '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0',
@@ -125,11 +125,11 @@ If a provided `header` object includes a `default` property, the value assigned
Synchronously lints the [license header][@stdlib/_tools/licenses/header] for each file in a provided file list.
```javascript
-var files = [
+const files = [
__filename
];
-var errs = lint.sync( files );
+const errs = lint.sync( files );
// returns [...]
```
@@ -172,14 +172,14 @@ var errs = lint.sync( files );
```javascript
-var createTable = require( '@stdlib/_tools/licenses/header-regexp-table' );
-var lint = require( '@stdlib/_tools/lint/license-header-file-list' );
+const createTable = require( '@stdlib/_tools/licenses/header-regexp-table' );
+const lint = require( '@stdlib/_tools/lint/license-header-file-list' );
// Create an object mapping filename extensions to license header regular expressions:
-var headers = createTable( 'Apache-2.0', [ 'js', 'md' ] );
+const headers = createTable( 'Apache-2.0', [ 'js', 'md' ] );
// Generate a list of files to lint:
-var files = [
+const files = [
__filename
];
diff --git a/lib/node_modules/@stdlib/_tools/lint/license-header-glob/README.md b/lib/node_modules/@stdlib/_tools/lint/license-header-glob/README.md
index 5157851038c..0e394ca0070 100644
--- a/lib/node_modules/@stdlib/_tools/lint/license-header-glob/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/license-header-glob/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/license-header-glob' );
+const lint = require( '@stdlib/_tools/lint/license-header-glob' );
```
#### lint( \[options,] clbk )
@@ -55,7 +55,7 @@ The function accepts the following `options`:
To search from a specific directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': __dirname
};
@@ -72,7 +72,7 @@ function onLint( error, errs ) {
To limit the file search to a subset of files, set the `pattern` option.
```javascript
-var opts = {
+const opts = {
'dir': __dirname,
'pattern': '**/*.js' // JavaScript files
};
@@ -90,7 +90,7 @@ function onLint( error, errs ) {
To exclude matches, set the `ignore` option.
```javascript
-var opts = {
+const opts = {
'pattern': '**/*.jl',
'ignore': [
'node_modules/**',
@@ -112,7 +112,7 @@ function onLint( error, errs ) {
To lint against a particular [license header][@stdlib/_tools/licenses/header], set the `header` option.
```javascript
-var opts = {
+const opts = {
'dir': __dirname,
'pattern': '**/*.js',
'header': '// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0'
@@ -131,7 +131,7 @@ function onLint( error, errs ) {
To lint against a license header [regular expression][@stdlib/_tools/licenses/header-regexp],
```javascript
-var opts = {
+const opts = {
'dir': __dirname,
'pattern': '**/*.js',
'header': /\/\/ This file is a part of stdlib\. License is Apache-2\.0: http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0/
@@ -150,7 +150,7 @@ function onLint( error, errs ) {
To lint against an `object` containing license header [`strings`][@stdlib/_tools/licenses/header] and/or [regular expressions][@stdlib/_tools/licenses/header-regexp],
```javascript
-var opts = {
+const opts = {
'dir': __dirname,
'header': {
// JavaScript files:
@@ -181,7 +181,7 @@ If a provided `header` option object includes a `default` property, the value as
Synchronously lints [license headers][@stdlib/_tools/licenses/header] for a file glob.
```javascript
-var errs = lint.sync();
+const errs = lint.sync();
// returns [...]
```
@@ -228,9 +228,9 @@ The function accepts the same `options` as `lint()` above.
```javascript
-var lint = require( '@stdlib/_tools/lint/license-header-glob' );
+const lint = require( '@stdlib/_tools/lint/license-header-glob' );
-var opts = {
+const opts = {
'dir': __dirname
};
diff --git a/lib/node_modules/@stdlib/_tools/lint/license-header/README.md b/lib/node_modules/@stdlib/_tools/lint/license-header/README.md
index 33b4aa828f3..6bce7579aa4 100644
--- a/lib/node_modules/@stdlib/_tools/lint/license-header/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/license-header/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/license-header' );
+const lint = require( '@stdlib/_tools/lint/license-header' );
```
#### lint( blob, header )
@@ -35,7 +35,7 @@ var lint = require( '@stdlib/_tools/lint/license-header' );
Lints a file `blob` against a specified [license header][@stdlib/_tools/licenses/header].
```javascript
-var str = [
+let str = [
'// This file is licensed under Apache-2.0.',
'',
'"use strict";',
@@ -45,18 +45,18 @@ var str = [
];
str = str.join( '\n' );
-var header = '// This file is licensed under MIT.';
+const header = '// This file is licensed under MIT.';
-var err = lint( str, header );
+const err = lint( str, header );
// returns {...}
```
The `blob` argument may be either a `string` or [`Buffer`][@stdlib/buffer/ctor].
```javascript
-var string2buffer = require( '@stdlib/buffer/from-string' );
+const string2buffer = require( '@stdlib/buffer/from-string' );
-var str = [
+let str = [
'// This file is licensed under Apache-2.0.',
'',
'"use strict";',
@@ -66,16 +66,16 @@ var str = [
];
str = str.join( '\n' );
-var header = '// This file is licensed under MIT.';
+const header = '// This file is licensed under MIT.';
-var err = lint( string2buffer( str ), header );
+const err = lint( string2buffer( str ), header );
// returns {...}
```
The `header` argument may be either a `string` or [regular expression][mdn-regexp].
```javascript
-var str = [
+let str = [
'// This file is licensed under Apache-2.0.',
'',
'"use strict";',
@@ -85,9 +85,9 @@ var str = [
];
str = str.join( '\n' );
-var header = /^(?:\/\/ |# |\/\* |)This file is licensed under Apache-2\.0\.(?: \*\/|)/;
+const header = /^(?:\/\/ |# |\/\* |)This file is licensed under Apache-2\.0\.(?: \*\/|)/;
-var err = lint( str, header );
+const err = lint( str, header );
// returns null
```
@@ -114,21 +114,21 @@ var err = lint( str, header );
```javascript
-var headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
-var readFile = require( '@stdlib/fs/read-file' ).sync;
-var lint = require( '@stdlib/_tools/lint/license-header' );
+const headerRegExp = require( '@stdlib/_tools/licenses/header-regexp' );
+const readFile = require( '@stdlib/fs/read-file' ).sync;
+const lint = require( '@stdlib/_tools/lint/license-header' );
// Generate a header RegExp:
-var header = headerRegExp( 'Apache-2.0', 'js' );
+const header = headerRegExp( 'Apache-2.0', 'js' );
// Read the current file:
-var fopts = {
+const fopts = {
'encoding': 'utf8'
};
-var file = readFile( __filename, fopts );
+const file = readFile( __filename, fopts );
// Lint the file license header:
-var err = lint( file, header );
+const err = lint( file, header );
if ( err ) {
console.error( err.error );
} else {
diff --git a/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/README.md b/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/README.md
index 44c27a12be3..4eceea957e7 100644
--- a/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/namespace-aliases/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/namespace-aliases' );
+const lint = require( '@stdlib/_tools/lint/namespace-aliases' );
```
#### lint( \[options,] clbk )
@@ -63,7 +63,7 @@ Each lint error is represented by an `object` having the following fields:
To lint starting from a descendant directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': './@stdlib/math/base'
};
@@ -86,7 +86,7 @@ function onLint( error, errs ) {
Synchronously lints stdlib namespace aliases to ensure that each namespace alias for a package matches the package's global alias.
```javascript
-var errs = lint.sync();
+const errs = lint.sync();
if ( errs.length ) {
console.error( JSON.stringify( errs ) );
} else {
@@ -117,9 +117,9 @@ The function accepts the same `options` as `lint()` above.
```javascript
-var lint = require( '@stdlib/_tools/lint/namespace-aliases' );
+const lint = require( '@stdlib/_tools/lint/namespace-aliases' );
-var opts = {
+const opts = {
'dir': './'
};
diff --git a/lib/node_modules/@stdlib/_tools/lint/pkg-json/README.md b/lib/node_modules/@stdlib/_tools/lint/pkg-json/README.md
index e44edcc12f9..538b89a2e17 100644
--- a/lib/node_modules/@stdlib/_tools/lint/pkg-json/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/pkg-json/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/pkg-json' );
+const lint = require( '@stdlib/_tools/lint/pkg-json' );
```
#### lint( \[options,] clbk )
@@ -58,7 +58,7 @@ The function accepts the following `options`:
To search from an alternative directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': '/foo/bar/baz'
};
@@ -79,7 +79,7 @@ function done( error, errs ) {
To provide an alternative include filter, set the `pattern` option.
```javascript
-var opts = {
+const opts = {
'pattern': '**/foo/**/package.json'
};
@@ -100,7 +100,7 @@ function done( error, errs ) {
To exclude matches, set the `ignore` option.
```javascript
-var opts = {
+const opts = {
'ignore': [
'node_modules/**',
'build/**',
@@ -127,7 +127,7 @@ function done( error, errs ) {
Synchronously lints `package.json` files.
```javascript
-var errs = lint.sync();
+const errs = lint.sync();
if ( errs ) {
console.dir( errs );
} else {
@@ -154,7 +154,7 @@ The function accepts the same `options` as `lint()` above.
```javascript
-var lint = require( '@stdlib/_tools/lint/pkg-json' );
+const lint = require( '@stdlib/_tools/lint/pkg-json' );
lint( done );
diff --git a/lib/node_modules/@stdlib/_tools/lint/repl-txt/README.md b/lib/node_modules/@stdlib/_tools/lint/repl-txt/README.md
index 572134fff33..bfeec88c42f 100644
--- a/lib/node_modules/@stdlib/_tools/lint/repl-txt/README.md
+++ b/lib/node_modules/@stdlib/_tools/lint/repl-txt/README.md
@@ -27,7 +27,7 @@ limitations under the License.
## Usage
```javascript
-var lint = require( '@stdlib/_tools/lint/repl-txt' );
+const lint = require( '@stdlib/_tools/lint/repl-txt' );
```
#### lint( \[options,] clbk )
@@ -58,7 +58,7 @@ The function accepts the following `options`:
To search from an alternative directory, set the `dir` option.
```javascript
-var opts = {
+const opts = {
'dir': '/foo/bar/baz'
};
@@ -79,7 +79,7 @@ function done( error, errs ) {
To provide an alternative include filter, set the `pattern` option.
```javascript
-var opts = {
+const opts = {
'pattern': '**/foo/**/repl.txt'
};
@@ -100,7 +100,7 @@ function done( error, errs ) {
To exclude matches, set the `ignore` option.
```javascript
-var opts = {
+const opts = {
'ignore': [
'node_modules/**',
'build/**',
@@ -127,7 +127,7 @@ function done( error, errs ) {
Synchronously lints `repl.txt` files.
```javascript
-var errs = lint.sync();
+const errs = lint.sync();
if ( errs ) {
console.dir( errs );
} else {
@@ -154,10 +154,10 @@ The function accepts the same `options` as `lint()` above.
```javascript
-var join = require( 'path' ).join;
-var lint = require( '@stdlib/_tools/lint/repl-txt' );
+const join = require( 'path' ).join;
+const lint = require( '@stdlib/_tools/lint/repl-txt' );
-var opts = {
+const opts = {
'dir': join( __dirname, 'test' ),
'pattern': '**/repl.txt'
};
diff --git a/lib/node_modules/@stdlib/_tools/makie/makie/README.md b/lib/node_modules/@stdlib/_tools/makie/makie/README.md
index 99e1ca9e5b5..b2417e66040 100644
--- a/lib/node_modules/@stdlib/_tools/makie/makie/README.md
+++ b/lib/node_modules/@stdlib/_tools/makie/makie/README.md
@@ -60,7 +60,7 @@ When executing a command, the current working directory is used as a filter. Thu
## Usage
```javascript
-var makie = require( '@stdlib/_tools/makie/makie' );
+const makie = require( '@stdlib/_tools/makie/makie' );
```
#### makie( dirpath, options, target )
@@ -68,13 +68,13 @@ var makie = require( '@stdlib/_tools/makie/makie' );
Executes a Makefile command where the command is identified by a `target` and the Makefile containing the `target` is located in directory `dirpath`.
```javascript
-var spawn = require( 'child_process' ).spawn;
+const spawn = require( 'child_process' ).spawn;
function plugin( dirpath, cwd, subpath ) {
- var proc = spawn( 'make', [], 'test' );
+ const proc = spawn( 'make', [], 'test' );
}
-var opts = {
+const opts = {
'plugins': {
'test': plugin
}
@@ -101,18 +101,14 @@ Executes a Makefile target. A plugin is provided the following arguments:
- **subpath**: subdirectory path, if `makie` is called in a subdirectory; otherwise, an empty `string`.
```javascript
-var spawn = require( 'child_process' ).spawn;
+const spawn = require( 'child_process' ).spawn;
function plugin( dir, cwd ) {
- var opts;
- var args;
- var proc;
-
- opts = {};
+ const opts = {};
opts.cwd = dir;
opts.stdio = 'inherit';
- args = new Array( 2 );
+ const args = new Array( 2 );
// Environment variables:
args[ 0 ] = 'REPL_DIR='+cwd;
@@ -120,7 +116,7 @@ function plugin( dir, cwd ) {
// Target:
args[ 1 ] = 'repl';
- proc = spawn( 'make', args, opts );
+ const proc = spawn( 'make', args, opts );
}
```
diff --git a/lib/node_modules/@stdlib/_tools/manifest-json/schema/README.md b/lib/node_modules/@stdlib/_tools/manifest-json/schema/README.md
index a15cd014624..f28491058d4 100644
--- a/lib/node_modules/@stdlib/_tools/manifest-json/schema/README.md
+++ b/lib/node_modules/@stdlib/_tools/manifest-json/schema/README.md
@@ -37,7 +37,7 @@ limitations under the License.
## Usage
```javascript
-var schema = require( '@stdlib/_tools/manifest-json/schema' );
+const schema = require( '@stdlib/_tools/manifest-json/schema' );
```
#### schema()
@@ -45,7 +45,7 @@ var schema = require( '@stdlib/_tools/manifest-json/schema' );
Returns a [JSON schema][json-schema] for `manifest.json`.
```javascript
-var json = schema();
+const json = schema();
// returns