Skip to content

Fix JavaScript lint errors #11209

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/constants/float32/e/lib/index.js

Linting file: lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/polyval_q.js

Linting file: lib/node_modules/@stdlib/math/iter/sequences/nonnegative-even-integers/lib/index.js

Linting file: lib/node_modules/@stdlib/stats/range/lib/index.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/ndarray/dlast-index-of/lib/index.js

Linting file: lib/node_modules/@stdlib/stats/strided/maxabs/lib/index.js

Linting file: lib/node_modules/@stdlib/repl/lib/regexp_require.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/repl/lib/regexp_require.js
45:1  error  Missing empty line between require statement and code in JSDoc example  stdlib/jsdoc-example-require-spacing
45:1  error  Missing empty line between require statement and code in JSDoc example  stdlib/jsdoc-example-require-spacing

✖ 2 problems (2 errors, 0 warnings)

Linting failed.

Linting file: lib/node_modules/@stdlib/random/base/exponential/lib/exponential.js

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

Linting file: lib/node_modules/@stdlib/utils/async/until/lib/main.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/utils/async/until/lib/main.js
115:11  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array

✖ 1 problem (1 error, 0 warnings)

Linting failed.

Linting file: lib/node_modules/@stdlib/math/base/special/riemann-zeta/lib/rational_p3q3.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/wasm/dasumpw/lib/binary.js

Linting file: lib/node_modules/@stdlib/math/strided/ops/sub/scripts/dtypes.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/binomial/median/lib/native.js

Linting file: lib/node_modules/@stdlib/math/strided/ops/sub/scripts/index.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/math/strided/ops/sub/scripts/index.js
21:1  error  Unused eslint-disable directive (no problems were reported from 'node/shebang')

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

Linting failed.

Linting file: lib/node_modules/@stdlib/blas/base/scnrm2/lib/scnrm2.native.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/exponential/pdf/lib/native.js

Linting file: lib/node_modules/@stdlib/_tools/pkgs/includes/lib/inspect.js

Linting file: lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js
51:46  error  Unused eslint-disable directive (no problems were reported from 'stdlib/require-globals')

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

Linting failed.

Linting file: lib/node_modules/@stdlib/stats/strided/sztest/lib/sztest.js

Linting file: lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/cmd.js

Linting file: lib/node_modules/@stdlib/ndarray/promotion-rules/lib/index.js

Linting file: lib/node_modules/@stdlib/ndarray/base/count-if/lib/7d_accessors.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