Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix JavaScript lint errors #8013

Closed
Closed
Labels
Good First IssueA good first issue for new contributors!
@stdlib-bot

Description

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/utils/async/count-by/lib/limit.js
Linting file: lib/node_modules/@stdlib/math/base/special/fresnels/lib/rational_psqs.js
Linting file: lib/node_modules/@stdlib/math/strided/special/abs/lib/index.js
Linting file: lib/node_modules/@stdlib/stats/base/dists/gamma/kurtosis/lib/native.js
Linting file: lib/node_modules/@stdlib/random/iter/rayleigh/lib/main.js
Linting file: lib/node_modules/@stdlib/regexp/whitespace/lib/regexp.js
Linting file: lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/stdev/lib/main.js
Linting file: lib/node_modules/@stdlib/math/base/special/dirac-delta/lib/index.js
Linting file: lib/node_modules/@stdlib/stats/strided/dminsorted/lib/native.js
Linting file: lib/node_modules/@stdlib/math/base/special/minmaxabsn/lib/index.js
Linting file: lib/node_modules/@stdlib/fs/resolve-parent-path-by/lib/async.js
/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/fs/resolve-parent-path-by/lib/async.js
127:2 error Expected error to be handled node/handle-callback-err
127:37 error Unused eslint-disable directive (no problems were reported from 'handle-callback-err')
✖ 2 problems (2 errors, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
Linting failed.
Linting file: lib/node_modules/@stdlib/stats/base/ndarray/minabs/lib/index.js
Linting file: lib/node_modules/@stdlib/ndarray/base/binary-reduce-strided1d/lib/index.js
Linting file: lib/node_modules/@stdlib/math/strided/special/trunc/lib/native.js
Linting file: lib/node_modules/@stdlib/assert/is-type-error/lib/index.js
Linting file: lib/node_modules/@stdlib/utils/timeit/lib/context.js
Linting file: lib/node_modules/@stdlib/string/base/replace-after-last/lib/index.js
Linting file: lib/node_modules/@stdlib/blas/base/drotm/lib/native.js
Linting file: lib/node_modules/@stdlib/assert/is-float16array/lib/main.js
Linting file: lib/node_modules/@stdlib/regexp/utf16-surrogate-pair/lib/index.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
make[1]: Entering directory '/home/runner/work/stdlib/stdlib'
Linting file: lib/node_modules/@stdlib/_tools/github/create-issue/examples/index.js
Linting file: lib/node_modules/@stdlib/blas/ext/base/dnanasumors/examples/index.js
Linting file: lib/node_modules/@stdlib/number/float64/base/to-int32/examples/index.js
Linting file: lib/node_modules/@stdlib/ndarray/iter/rows/examples/index.js
Linting file: lib/node_modules/@stdlib/utils/some-own-by/examples/index.js
Linting file: lib/node_modules/@stdlib/assert/is-vector-like/examples/index.js
Linting file: lib/node_modules/@stdlib/stats/ranks/examples/index.js
/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/stats/ranks/examples/index.js
32:8 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.
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/assert/deep-equal/benchmark/benchmark.js
/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/assert/deep-equal/benchmark/benchmark.js
68:20 error Unused eslint-disable directive (no problems were reported from 'no-new-wrappers')
✖ 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/base/dists/levy/mean/benchmark/benchmark.js
Linting file: lib/node_modules/@stdlib/array/fixed-endian-float64/benchmark/benchmark.to_string.length.js
Linting file: lib/node_modules/@stdlib/nlp/ordinalize/benchmark/benchmark.js
Linting file: lib/node_modules/@stdlib/stats/strided/sdsmean/benchmark/benchmark.native.js
Linting file: lib/node_modules/@stdlib/random/array/tools/unary/benchmark/benchmark.js
Linting file: lib/node_modules/@stdlib/blas/ext/base/ssortins/benchmark/benchmark.unsorted_few_uniques.js
Linting file: lib/node_modules/@stdlib/stats/strided/dstdevyc/benchmark/benchmark.js
Linting file: lib/node_modules/@stdlib/stats/base/dists/uniform/logcdf/benchmark/benchmark.native.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

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /