stdlib-js / stdlib-js/stdlib

Fix JavaScript lint errors

未关闭
#12,959 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Good First Issue
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
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/27797903247
- Type: JavaScript Linting
- Date: 2026-06-19 00:43:13 UTC

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

Linting file: lib/node_modules/@stdlib/math/iter/tools/examples/index.js

Linting file: lib/node_modules/@stdlib/_tools/github/dispatch-workflow/examples/index.js

Oops! Something went wrong! :(

ESLint: 8.57.1

RangeError: Invalid time value
at Date.toISOString ()
at done (/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/query.js:86:64)
at onError (/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/request.js:80:10)
at IncomingMessage.onEnd (/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/request.js:126:11)
at IncomingMessage.emit (node:events:536:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Linting failed.

Linting file: lib/node_modules/@stdlib/assert/is-method/examples/index.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/exponential/skewness/examples/index.js
λ: 17.2493, skew(X;λ): 2.0000
λ: 18.8186, skew(X;λ): 2.0000
λ: 12.6976, skew(X;λ): 2.0000
λ: 2.4522, skew(X;λ): 2.0000
λ: 9.9145, skew(X;λ): 2.0000
λ: 9.9512, skew(X;λ): 2.0000
λ: 13.5434, skew(X;λ): 2.0000
λ: 11.5485, skew(X;λ): 2.0000
λ: 6.0771, skew(X;λ): 2.0000
λ: 10.7675, skew(X;λ): 2.0000

Linting file: lib/node_modules/@stdlib/napi/argv-int32array/examples/index.js

Linting file: lib/node_modules/@stdlib/math/iter/special/gamma1pm1/examples/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
```

### 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 #".

贡献指南

打开贡献指南

调研方向

Reproduce the JavaScript lint target from the workflow run, then inspect lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/query.js around line 86 and request.js around lines 80 and 126, where the failure is reported. Trace the invalid time value through the error path and rerun the lint target; done means the workflow completes without the RangeError or lint failure.

由索引模型根据 Issue 内容生成。

评估

技术栈
eslint, javascript, node.js
领域
ci-cd, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。