-
-
Notifications
You must be signed in to change notification settings - Fork 442
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
📎 Implement useArrayLiterals
- eslint/no-array-constructor
#2532
Comments
I'm interested in but I have never contributed biome rules, nor oss by rust. |
@Kazuhiro-Mimaki Hi, yes we can help! Firstly, I recommend reading CONTRIBUTING.md and other PRs implement lint rules. |
I wonder if the rule should also ban If we accept |
If we trust the results of this benchmark, it appears that insertion of an element into an array with holes is not that different from using a literal array. The |
If user wants to create explicit size array, they could use
It is more explicit and performance difference should be nonexistant compared |
Not sure users will appreciate the workaround. Ok, let's allow @unvalley and @minht11 what do you think about renaming the rule to |
I see that biome already has quite a few rules with word literal in them. So it sounds good to me from consistency and semantics standpoint. Personally I would flip it to |
We have following named rules (related?):
|
It seems that we have a winner: |
noArrayConstructor
- eslint/no-array-constructor
useArrayLiterals
- eslint/no-array-constructor
Description
no-array-constructor - ESLint - Pluggable JavaScript Linter
Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
Name suggestions are welcome.
The text was updated successfully, but these errors were encountered: