Skip to content

Fix JavaScript lint errors #13224

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/random/invgamma/benchmark/benchmark.3d.same_shape.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/cindex-of/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/array/float16/benchmark/benchmark.set.length.js

Linting file: lib/node_modules/@stdlib/random/strided/invgamma/benchmark/benchmark.float64.js

Linting file: lib/node_modules/@stdlib/stats/strided/snanminabs/benchmark/benchmark.native.js

Linting file: lib/node_modules/@stdlib/random/array/hypergeometric/benchmark/benchmark.float64.factory.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/betaprime/cdf/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/array/float64/benchmark/benchmark.reduce_right.js

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

Linting file: lib/node_modules/@stdlib/array/int16/benchmark/benchmark.every.length.js

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

Linting file: lib/node_modules/@stdlib/utils/shift/benchmark/benchmark.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/utils/shift/benchmark/benchmark.js
38:8  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
65:8  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array

✖ 2 problems (2 errors, 0 warnings)

Linting failed.

Linting file: lib/node_modules/@stdlib/ndarray/base/nullary/benchmark/benchmark.3d_blocked_columnmajor.js

Linting file: lib/node_modules/@stdlib/random/array/chisquare/benchmark/benchmark.float32.factory.js

Linting file: lib/node_modules/@stdlib/datasets/male-first-names-en/benchmark/benchmark.browser.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

    Fields

    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