stdlib-js / stdlib-js/stdlib

Fix JavaScript lint errors

オープン
#10,528 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
Good First Issue
主要言語
JavaScript
スター
6k
フォーク
1.3k
平均マージ
1日 3時間
マージ済み PR(30日)
611

説明

## JavaScript Linting Failures

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

### Workflow Details

- Run: https://github.com/stdlib-js/stdlib/actions/runs/22466678244
- Type: JavaScript Linting
- Date: 2026-02-27 00:17:53 UTC

### Error Details
```
make[1]: Entering directory '/home/runner/work/stdlib/stdlib'

Linting file: lib/node_modules/@stdlib/ndarray/vector/float32/test/test.js

Linting file: lib/node_modules/@stdlib/array/typed-dtypes/test/test.js

Linting file: lib/node_modules/@stdlib/math/base/special/erfc/test/test.js

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

Linting file: lib/node_modules/@stdlib/array/base/zerosnd/test/test.js

Linting file: lib/node_modules/@stdlib/math/base/special/expm1rel/test/test.native.js

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

Linting file: lib/node_modules/@stdlib/array/complex64/test/test.find_last_index.js

Linting file: lib/node_modules/@stdlib/stats/strided/dmin/test/test.ndarray.js

Linting file: lib/node_modules/@stdlib/assert/is-number/test/test.primitive.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/cauchy/logpdf/test/test.logpdf.js

Linting file: lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js
46:65 error Unused eslint-disable directive (no problems were reported from 'array-element-newline')
47:70 error Unused eslint-disable directive (no problems were reported from 'array-element-newline')
49:13 error There should be a linebreak after this element array-element-newline
49:18 error There should be a linebreak after this element array-element-newline
49:23 error There should be a linebreak after this element array-element-newline
49:34 error There should be a linebreak after this element array-element-newline
50:13 error There should be a linebreak after this element array-element-newline
50:24 error There should be a linebreak after this element array-element-newline
50:35 error There should be a linebreak after this element array-element-newline
50:40 error There should be a linebreak after this element array-element-newline

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

Linting failed.

Linting file: lib/node_modules/@stdlib/stats/strided/dcovarmtk/test/test.ndarray.native.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/binomial/pmf/test/test.factory.js

Linting file: lib/node_modules/@stdlib/assert/is-boolean/test/test.object.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/gumbel/cdf/test/test.js

Linting file: lib/node_modules/@stdlib/_tools/github/org-repos/test/fixtures/opts.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/quantile/test/test.factory.js

Linting file: lib/node_modules/@stdlib/stats/strided/dnanstdevch/test/test.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
make[1]: Entering directory '/home/runner/work/stdlib/stdlib'

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

Linting file: lib/node_modules/@stdlib/number/float32/base/to-binary-string/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/strided/dispatch-by/benchmark/benchmark.js

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

Linting file: lib/node_modules/@stdlib/stats/strided/nanmin-by/benchmark/benchmark.js

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

Linting file: lib/node_modules/@stdlib/stats/base/dists/negative-binomial/mode/benchmark/benchmark.native.js

Linting file: lib/node_modules/@stdlib/assert/is-error/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/blas/base/operation-sides/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/stats/strided/nanrange-by/benchmark/benchmark.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/pareto-type1/logpdf/benchmark/benchmark.js

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

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js
40:8 error Using the `new Array()` constructor is not allowed; use an array literal with push instead stdlib/no-new-array
42:9 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/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.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 #)".
- Reference this issue in the "Related Issues" section of the PR body as "resolves #".

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js and lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js, where the lint output identifies the failures. Run the JavaScript lint target from tools/make/lib/lint/javascript/Makefile and confirm that the reported errors are gone across the workflow.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
tooling
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。