Skip to content

chore: fix JavaScript lint errors #7952

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

rajanarahul93
Copy link
Contributor

Resolves #7019.

Description

What is the purpose of this pull request?

This pull request:

  • fixes JavaScript lint errors by replacing new Array() constructor with array literal syntax to comply with the stdlib/no-new-array ESLint rule in the svg marks component

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

Technical Details:

  • File changed: lib/node_modules/@stdlib/plot/components/svg/marks/lib/main.js
  • Line 114: Replaced args = new Array( arguments.length+1 ); with args = []; args.length = arguments.length + 1;
  • ESLint rule: stdlib/no-new-array
  • Functionality: Maintains identical behavior while following stdlib coding standards
  • Testing: Verified with make lint-javascript-files command

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added Needs Review A pull request which needs code review. Good First PR A pull request resolving a Good First Issue. labels Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix JavaScript lint errors
2 participants