fix(lint): replace new Array() with sparse array literals in tests #9356#9363
Closed
surajgoraicse wants to merge 1 commit intostdlib-js:developfrom
Closed
fix(lint): replace new Array() with sparse array literals in tests #9356#9363surajgoraicse wants to merge 1 commit intostdlib-js:developfrom
surajgoraicse wants to merge 1 commit intostdlib-js:developfrom
Conversation
Contributor
|
👋 Hi there! 👋 And thank you for opening your first pull request! We will review it shortly. 🏃 💨 Getting Started
Next Steps
Running Tests LocallyYou can use # Run tests for all packages in the math namespace:
make test TESTS_FILTER=".*/@stdlib/math/.*"
# Run benchmarks for a specific package:
make benchmark BENCHMARKS_FILTER=".*/@stdlib/math/base/special/sin/.*"If you haven't heard back from us within two weeks, please ping us by tagging the "reviewers" team in a comment on this PR. If you have any further questions while waiting for a response, please join our Zulip community to chat with project maintainers and other community members. We appreciate your contribution! Documentation Links |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 #9356>.
Description
This pull request fixes JavaScript linting failures caused by the use of the
new Array()constructor in test files.This pull request:
new Array(n)with array literals and explicitlengthassignmentstdlib/no-new-arrayESLint ruleRelated Issues
This pull request has the following related issues:
Questions
No.
Other
The change follows the recommended stdlib pattern for creating sparse arrays without using the
new Array()constructor, ensuring lint compliance while maintaining test intent.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
I consulted ChatGPT to understand the
stdlib/no-new-arraylinting rule and the recommended approach for preserving sparse array semantics. The code changes were written manually.@stdlib-js/reviewers