-
-
Notifications
You must be signed in to change notification settings - Fork 906
fix: resolve ESLint errors by replacing new Array() #6033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: resolve ESLint errors by replacing new Array() #6033
Conversation
Hello! Thank you for your contribution to stdlib. We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:
This acknowledgment confirms that you've read the guidelines, which include:
We can't review or accept contributions without this acknowledgment. Thank you for your understanding and cooperation. We look forward to reviewing your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hi there! 👋
And thank you for opening your first pull request! We will review it shortly. 🏃 💨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notice the lint error message:
Using the
new Array()
constructor is not allowed; use an array literal with push instead
We want to use .push
instead of pre-allocating space for all the elements.
Also can you explain for me why using .push is better than pre-allocating ? I thought pre-allocating is better performance-wise. |
lib/node_modules/@stdlib/_tools/github/rank-followers/lib/pipeline.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/_tools/github/rank-followers/lib/pipeline.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AlyAbdelmoneim Re: perf. Not with |
Resolves #6032.
Description
This pull request:
Related Issues
This pull request:
Questions
I encountered an issue when running the linting process due to an error related to EditorConfig. The error message indicated that the "path" argument was invalid, specifically that it was undefined. I would appreciate any guidance on how to resolve this or improve the configuration for linting.
Other
Checklist
@stdlib-js/reviewers