Fix JavaScript lint errors

Đang mở
#16,126 2 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

@B-Payal đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #16139 của @B-Payal — đ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
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
eslint, javascript
Lĩnh vực
tooling

Hướng nghiên cứu

The failures are in the example files named in the log, such as lib/node_modules/@stdlib/assert/is-configurable-property-in/examples/index.js (eol-open-bracket-spacing) and lib/node_modules/@stdlib/string/remove-utf8-bom/examples/index.js (doctest). Read the log's line numbers, then run the JavaScript lint target for those files. Done means those files lint clean. Pull request #16139 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/assert/is-relative-uri/examples/index.js

Linting file: lib/node_modules/@stdlib/array/base/fancy-slice/examples/index.js

Linting file: lib/node_modules/@stdlib/string/examples/index.js

Linting file: lib/node_modules/@stdlib/assert/is-configurable-property-in/examples/index.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/assert/is-configurable-property-in/examples/index.js
25:12  error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line  stdlib/eol-open-bracket-spacing
33:8   error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line  stdlib/eol-open-bracket-spacing
37:8   error  No spaces allowed between an opening parenthesis or bracket and a nested object or array expression at the end of a line  stdlib/eol-open-bracket-spacing

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

Linting failed.

Linting file: lib/node_modules/@stdlib/string/remove-utf8-bom/examples/index.js

/home/runner/work/stdlib/stdlib/lib/node_modules/@stdlib/string/remove-utf8-bom/examples/index.js
27:1  error  Displayed return value is `boop\ufeff`, but expected `boop` instead    stdlib/doctest
31:1  error  Displayed return value is `be\ufeffbop`, but expected `bebop` instead  stdlib/doctest

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

Linting failed.

Linting file: lib/node_modules/@stdlib/stats/array/meanpn/examples/index.js

Linting file: lib/node_modules/@stdlib/process/umask/examples/index.js

Linting file: lib/node_modules/@stdlib/stats/base/ndarray/dvariance/examples/index.js

Linting file: lib/node_modules/@stdlib/stats/base/dists/normal/skewness/examples/index.js
μ: 1.9581, σ: 16.6563, skew(X;μ,σ): 0.0000
μ: -1.5429, σ: 17.6018, skew(X;μ,σ): 0.0000
μ: 3.9191, σ: 8.4898, skew(X;μ,σ): 0.0000
μ: 0.6959, σ: 0.5511, skew(X;μ,σ): 0.0000
μ: 4.5132, σ: 2.1367, skew(X;μ,σ): 0.0000
μ: -1.9799, σ: 19.3472, skew(X;μ,σ): 0.0000
μ: -3.1450, σ: 0.8523, skew(X;μ,σ): 0.0000
μ: -3.4725, σ: 18.1537, skew(X;μ,σ): 0.0000
μ: 0.0781, σ: 15.3200, skew(X;μ,σ): 0.0000
μ: 4.1261, σ: 2.6463, skew(X;μ,σ): 0.0000

Linting file: lib/node_modules/@stdlib/utils/omit-by/examples/index.js

Linting file: lib/node_modules/@stdlib/blas/ext/base/ssort2sh/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.