Fix JavaScript lint errors

Đang mở
#15,995 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@CoDe-ReDz đang làm issue này rồi.

Từ ngày 9/10/2026.

  • #16002 của @CoDe-ReDz — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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>".
Ngôn ngữ chính
JavaScript
Star
6k
Fork
1.3k
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
224

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stdlib-js/stdlib

Tất cả issue của stdlib-js/stdlib

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.