Fix JavaScript lint errors
- Langage dominant
- JavaScript
- Étoiles
- 6k
- Forks
- 1.3k
- Merge moyen
- 1 j 3 h
- PR mergées (30 j)
- 611
Description
## 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 #".
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 35/100