Skip to content

Fix JavaScript lint errors #12222

@stdlib-bot

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/stats/strided/snanmskmax/test/test.ndarray.js

Linting file: lib/node_modules/@stdlib/_tools/links/validate/test/test.js

Linting file: lib/node_modules/@stdlib/utils/every/test/test.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/bradford/mean/test/test.js

Linting file: lib/node_modules/@stdlib/math/base/assert/is-positive-integer/test/test.js

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

Linting file: lib/node_modules/@stdlib/ndarray/base/assign-scalar/test/test.3d.js

Linting file: lib/node_modules/@stdlib/stats/base/ndarray/maxsorted/test/test.js

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

Linting file: lib/node_modules/@stdlib/strided/base/binary/test/test.main.js

Linting file: lib/node_modules/@stdlib/blas/base/gasum/test/test.ndarray.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/blas/base/gasum/test/test.ndarray.js
201:6  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
217:6  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
244:6  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array
260:6  error  Using the `new Array()` constructor is not allowed; use an array literal with push instead  stdlib/no-new-array

✖ 4 problems (4 errors, 0 warnings)

Linting failed.

Linting file: lib/node_modules/@stdlib/blas/base/drotm/test/test.ndarray.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/blas/base/drotm/test/test.ndarray.js
290:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
290:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
297:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
297:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
326:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
326:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
333:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
333:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
373:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
373:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
380:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
380:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
409:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
409:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
416:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
416:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
480:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
480:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
487:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
487:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
516:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
516:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
523:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
523:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
562:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
562:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
569:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
569:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
598:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
598:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
605:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
605:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
669:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
669:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
676:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
676:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
705:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
705:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing
712:7  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line       stdlib/eol-open-bracket-spacing
712:7  error  No spaces allowed between a closing parenthesis or bracket and a nested object or array expression at the beginning of a line  stdlib/line-closing-bracket-spacing

✖ 40 problems (40 errors, 0 warnings)
40 errors and 0 warnings potentially fixable with the `--fix` option.

Linting failed.

Linting file: lib/node_modules/@stdlib/blas/ext/base/dapx/test/test.dapx.native.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/gsumpw/test/test.main.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/drrss/test/test.drrss.native.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/gsortsh/test/test.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