chore: fix JavaScript lint errors (issue #10073) #10074
Open
+23
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #10073.
Description
This pull request:
stdlib/jsdoc-doctestandstdlib/jsdoc-main-exportlint failures by updating the JSDoc example in@stdlib/_tools/remark/plugins/remark-run-javascript-examplesto display the main export in the expected doctest format and ensure the example follows the “main export require last” convention.stdlib/no-new-arraylint failures in@stdlib/math/strided/special/cbrt-bytests by replacing disallowednew Array()usage with an array literal pattern while preserving sparse-array intent.Related Issues
This pull request has the following related issues:
Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
I consulted Microsoft Copilot to understand the reported ESLint rule failures and file structure. I implemented the changes manually in a GitHub Codespace and verified the affected files by running ESLint on the specific paths referenced in issue #10073.

@stdlib-js/reviewers