Skip to content

Fix JavaScript lint errors #13114

Description

@stdlib-bot

JavaScript Linting Failures

Linting failures were detected in the automated JavaScript lint workflow run.

Workflow Details

Error Details

make[1]: Entering directory '/home/runner/work/stdlib/stdlib'

Linting file: lib/node_modules/@stdlib/array/base/scatter-filled/examples/index.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/gamma/mode/examples/index.js
α: 9.0522, β: 6.9268, mode(X;α,β): 1.1625
α: 4.3904, β: 6.9701, mode(X;α,β): 0.4864
α: 2.2493, β: 6.5626, mode(X;α,β): 0.1904
α: 5.8540, β: 4.8390, mode(X;α,β): 1.0031
α: 0.0180, β: 0.6055, mode(X;α,β): nan
α: 2.7516, β: 1.7753, mode(X;α,β): 0.9866
α: 4.4420, β: 6.2026, mode(X;α,β): 0.5549
α: 1.9815, β: 2.5296, mode(X;α,β): 0.3880
α: 4.4275, β: 3.5770, mode(X;α,β): 0.9582
α: 3.4777, β: 7.7456, mode(X;α,β): 0.3199

Linting file: lib/node_modules/@stdlib/blas/ext/base/gaxpby/examples/index.js

Linting file: lib/node_modules/@stdlib/fs/read-file-list/examples/index.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/fs/read-file-list/examples/index.js
35:1  error  Displayed return value is `true`, but expected `false` instead  stdlib/doctest

✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.

Linting failed.
make[1]: *** [/home/runner/work/stdlib/stdlib/tools/make/lib/lint/javascript/eslint.mk:261: eslint-files] Error 1
make[1]: Leaving directory '/home/runner/work/stdlib/stdlib'
make: *** [/home/runner/work/stdlib/stdlib/tools/make/lib/lint/javascript/Makefile:158: lint-javascript-files] Error 2
make[1]: Entering directory '/home/runner/work/stdlib/stdlib'

Linting file: lib/node_modules/@stdlib/repl/help/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js

Linting file: lib/node_modules/@stdlib/stats/chi2gof/benchmark/benchmark.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/stats/chi2gof/benchmark/benchmark.js
 45:6   error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
 50:10  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
 85:6   error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
 90:10  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
128:6   error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
133:10  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
172:6   error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
177:10  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
216:6   error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
220:10  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
221:10  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
257:6   error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
261:10  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
262:13  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array

✖ 14 problems (14 errors, 0 warnings)

Linting failed.

Linting file: lib/node_modules/@stdlib/ndarray/base/map/benchmark/benchmark.4d_rowmajor.js

Linting file: lib/node_modules/@stdlib/strided/base/smskmap/benchmark/benchmark.ndarray.js

Linting file: lib/node_modules/@stdlib/ndarray/base/every-by/benchmark/benchmark.2d_blocked_rowmajor.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/random/base/lognormal/benchmark/benchmark.factory.js

Linting file: lib/node_modules/@stdlib/math/strided/special/scbrt/benchmark/benchmark.ndarray.native.js

Linting file: lib/node_modules/@stdlib/array/base/cuany-by-right/benchmark/benchmark.assign.length.js

Linting file: lib/node_modules/@stdlib/strided/base/unary-dtype-signatures/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/stats/strided/dmeanli/benchmark/benchmark.ndarray.js
make[1]: *** [/home/runner/work/stdlib/stdlib/tools/make/lib/lint/javascript/eslint.mk:261: eslint-files] Error 1
make[1]: Leaving directory '/home/runner/work/stdlib/stdlib'
make: *** [/home/runner/work/stdlib/stdlib/tools/make/lib/lint/javascript/Makefile:158: lint-javascript-files] Error 2

Pull Request Instructions

  • Please use the following PR title format:
    "chore: fix JavaScript lint errors (issue #<ISSUE_NUMBER>)".
  • Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueA good first issue for new contributors!

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions