chore: fix JavaScript lint errors (issue #8563)
type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report:
- task: lint_filenames status: passed
- task: lint_editorconfig status: passed
- task: lint_markdown status: na
- task: lint_package_json status: na
- task: lint_repl_help status: na
- task: lint_javascript_src status: na
- task: lint_javascript_cli status: na
- task: lint_javascript_examples status: passed
- task: lint_javascript_tests status: na
- task: lint_javascript_benchmarks status: na
- task: lint_python status: na
- task: lint_r status: na
- task: lint_c_src status: na
- task: lint_c_examples status: na
- task: lint_c_benchmarks status: na
- task: lint_c_tests_fixtures status: na
- task: lint_shell status: na
- task: lint_typescript_declarations status: passed
- task: lint_typescript_tests status: na
- task: lint_license_headers status: passed
Resolves #8563.
Description
This pull request fixes JavaScript linting errors in the repository as specified in issue #8563.
The changes ensure correct require ordering and improve code quality in the affected JavaScript example files.
Related Issues
- #8563
Questions
No.
Other
No.
Checklist
- [x] Read, understood, and followed the contributing guidelines.
AI Assistance
- [ ] Yes
- [x] No
Disclosure
N/A
@stdlib-js/reviewers
Coverage Report
| Package | Statements | Branches | Functions | Lines |
|---|---|---|---|---|
| ndarray/for-each | $\color{green}123/123$ $color{green}+100.00%$ |
$\color{green}7/7$ $color{green}+100.00%$ |
$\color{green}1/1$ $color{green}+100.00%$ |
$\color{green}123/123$ $color{green}+100.00%$ |
The above coverage report was generated for the changes in this PR.
This PR performs a change similar to https://github.com/stdlib-js/stdlib/pull/8564. If that PR doesn't move forward, this PR can serve as a fallback. Otherwise, once that PR is merged, this PR should be auto-closed as a duplicate.