Skip to content

chore: fix JavaScript lint errors (issue #10528)#10726

Open
travisbreaks wants to merge 1 commit intostdlib-js:developfrom
travisbreaks:fix/issue-10528
Open

chore: fix JavaScript lint errors (issue #10528)#10726
travisbreaks wants to merge 1 commit intostdlib-js:developfrom
travisbreaks:fix/issue-10528

Conversation

@travisbreaks
Copy link
Contributor

@travisbreaks travisbreaks commented Mar 6, 2026

Description

Fixes the JavaScript lint errors reported in issue #10528.

Changes

  • lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js:

    • Remove unused eslint-disable-line array-element-newline directives on lines 46-47
    • Fix array-element-newline errors in the expected array by placing each element on its own line
  • lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js:

    • Replace new Array( 100 ) and new Array( 5 ) constructors with array literals and push() to satisfy the stdlib/no-new-array lint rule

Related Issues

Resolves #10528


Co-authored-by: Egger egger@horny-toad.com

Checklist

- Fix array-element-newline errors in stats/kstest/test/test.marsaglia.js by adding linebreaks between array elements
- Remove unused eslint-disable directives for array-element-newline
- Replace new Array() constructor with array literals and push in utils/pluck/benchmark/benchmark.js

Co-authored-by: Egger <egger@horny-toad.com>
@stdlib-bot
Copy link
Contributor

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:

  1. Please read our contributing guidelines.

  2. Update your pull request description to include this checked box:

    - [x] Read, understood, and followed the [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md)

This acknowledgment confirms that you've read the guidelines, which include:

  • The developer's certificate of origin
  • Your agreement to license your contributions under the project's terms

We can't review or accept contributions without this acknowledgment.

Thank you for your understanding and cooperation. We look forward to reviewing your contribution!

@stdlib-bot stdlib-bot added First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Review A pull request which needs code review. Good First PR A pull request resolving a Good First Issue. Potential Duplicate There might be another pull request resolving the same issue. labels Mar 6, 2026
@stdlib-bot stdlib-bot removed the First-time Contributor A pull request from a contributor who has never previously committed to the project repository. label Mar 6, 2026
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. Potential Duplicate There might be another pull request resolving the same issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix JavaScript lint errors

2 participants