Fix JavaScript lint errors

未關閉
#15,995 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@CoDe-ReDz 已經在處理了。

開始於 2026年10月9日。

  • #16002 來自 @CoDe-ReDz —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
javascript
領域
tooling

研究方向

The only reported error is at line 23, column 18 of lib/node_modules/@stdlib/math/base/tools/evalrational-compile/examples/index.js, for the stdlib/require-last-path-relative rule; the other file names in the log are just lint output. Read that example's final require call and make it a relative path, then rerun the JavaScript lint target to confirm the error is gone. Pull request #16002 is already open against this issue, so check it before starting.

由索引模型根據 Issue 內容生成。

描述

Good First Issue

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/strided/base/mskunary-dtype-signatures/examples/index.js

Linting file: lib/node_modules/@stdlib/math/base/special/hacoversin/examples/index.js
hacoversin(4.9631) = 0.9844
hacoversin(6.0915) = 0.5953
hacoversin(2.3838) = 0.1563
hacoversin(3.5994) = 0.7210
hacoversin(3.9334) = 0.8558
hacoversin(4.7448) = 0.9997
hacoversin(5.1497) = 0.9529
hacoversin(1.6682) = 0.0024
hacoversin(0.9702) = 0.0875
hacoversin(2.0651) = 0.0598
hacoversin(4.9790) = 0.9823
hacoversin(0.2761) = 0.3637
hacoversin(2.2398) = 0.1078
hacoversin(4.6990) = 1.0000
hacoversin(3.3736) = 0.6150
hacoversin(3.1808) = 0.5196
hacoversin(2.8966) = 0.3787
hacoversin(5.3726) = 0.8949
hacoversin(4.7160) = 1.0000
hacoversin(4.6493) = 0.9990
hacoversin(0.4832) = 0.2677
hacoversin(1.1713) = 0.0394
hacoversin(2.8105) = 0.3375
hacoversin(0.0741) = 0.4630
hacoversin(2.5215) = 0.2095
hacoversin(0.4443) = 0.2851
hacoversin(4.5035) = 0.9891
hacoversin(0.6089) = 0.2140
hacoversin(4.8935) = 0.9918
hacoversin(5.9872) = 0.6458
hacoversin(3.9654) = 0.8669
hacoversin(3.3019) = 0.5798
hacoversin(4.8485) = 0.9954
hacoversin(0.5405) = 0.2427
hacoversin(6.2092) = 0.5370
hacoversin(5.0322) = 0.9747
hacoversin(3.7708) = 0.7942
hacoversin(1.5192) = 0.0007
hacoversin(4.5165) = 0.9904
hacoversin(1.7460) = 0.0077
hacoversin(3.7184) = 0.7727
hacoversin(5.2053) = 0.9405
hacoversin(2.8731) = 0.3674
hacoversin(3.0559) = 0.4572
hacoversin(2.2995) = 0.1270
hacoversin(3.4303) = 0.6424
hacoversin(5.4823) = 0.8590
hacoversin(6.0463) = 0.6173
hacoversin(0.4725) = 0.2724
hacoversin(1.4445) = 0.0040
hacoversin(2.3439) = 0.1421
hacoversin(2.2626) = 0.1149
hacoversin(5.3407) = 0.9045
hacoversin(2.9927) = 0.4258
hacoversin(4.6062) = 0.9972
hacoversin(1.0390) = 0.0690
hacoversin(4.9675) = 0.9838
hacoversin(5.4632) = 0.8656
hacoversin(5.3684) = 0.8962
hacoversin(1.4348) = 0.0046
hacoversin(5.5746) = 0.8254
hacoversin(0.3673) = 0.3204
hacoversin(2.2574) = 0.1133
hacoversin(0.4486) = 0.2831
hacoversin(6.1734) = 0.5548
hacoversin(3.4676) = 0.6601
hacoversin(3.5501) = 0.6986
hacoversin(2.8600) = 0.3611
hacoversin(0.5492) = 0.2390
hacoversin(3.3447) = 0.6008
hacoversin(3.0352) = 0.4469
hacoversin(0.2862) = 0.3588
hacoversin(1.8810) = 0.0239
hacoversin(3.7737) = 0.7954
hacoversin(0.9810) = 0.0845
hacoversin(3.4551) = 0.6542
hacoversin(5.1488) = 0.9531
hacoversin(5.6793) = 0.7839
hacoversin(0.1816) = 0.4097
hacoversin(5.2427) = 0.9313
hacoversin(0.6476) = 0.1984
hacoversin(2.1697) = 0.0870
hacoversin(1.6671) = 0.0023
hacoversin(5.2957) = 0.9173
hacoversin(2.9969) = 0.4279
hacoversin(6.1255) = 0.5785
hacoversin(5.9500) = 0.6635
hacoversin(4.0448) = 0.8927
hacoversin(2.4147) = 0.1677
hacoversin(0.4505) = 0.2823
hacoversin(1.6139) = 0.0005
hacoversin(6.0192) = 0.6305
hacoversin(5.8173) = 0.7246
hacoversin(4.1792) = 0.9306
hacoversin(3.8824) = 0.8375
hacoversin(6.0319) = 0.6243
hacoversin(3.6188) = 0.7296
hacoversin(4.7912) = 0.9984
hacoversin(5.7891) = 0.7371
hacoversin(3.2491) = 0.5537

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

Linting file: lib/node_modules/@stdlib/math/base/tools/evalrational-compile/examples/index.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/math/base/tools/evalrational-compile/examples/index.js
23:18  error  Last `require` statement in example files must be a relative path  stdlib/require-last-path-relative

✖ 1 problem (1 error, 0 warnings)

Linting failed.

Linting file: lib/node_modules/@stdlib/constants/float64/ln-two/examples/index.js

Linting file: lib/node_modules/@stdlib/stats/strided/smaxabs/examples/index.js

Linting file: lib/node_modules/@stdlib/stats/base/snanvarianceyc/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 #<ISSUE_NUMBER>)".
  • Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
主要語言
JavaScript
星號
6k
分支
1.3k
平均合併
1 天 21 小時
30 天內合併 PR
224

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

stdlib-js/stdlib 的其他 Issue

查看 stdlib-js/stdlib 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。