Skip to content

Conversation

@RudrakshRaina07
Copy link
Contributor

@RudrakshRaina07 RudrakshRaina07 commented Oct 24, 2025

Resolves #8265

Description

This PR resolves isuue #8265 .

This pull request:

  • This PR three errors in issue Fix JavaScript lint errors #8265 .
  • First error is the usage of new array() constructor as ESlint rule stdlib/no-new-array forbids usage of new array() so instead of that we are using empty array [ ] with push command which is explicit and safe.
  • Second error is due to the usage of copyLocationInfo function in a nested form. copyLocationInfo function can be used outisde of the main function as it donot use any variable of the main function. So I placed copyLocationInfo outside of main funciton.
  • Third error is due to usage of package name in require(). To solve it we should use relative path instead of package name.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

First error fix:

Screenshot 2025-10-24 131733

Second error fix:

Screenshot 2025-10-24 131756

Third error fix:

Screenshot 2025-10-24 131804

No.

Checklist

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

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".

{{TODO: add disclosure if applicable}}


@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 Oct 24, 2025
@RudrakshRaina07 RudrakshRaina07 changed the title chore: Fix Javascript lint errors #8265 chore: fix javascript lint errors #8265 Oct 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

3 participants