Skip to content

linter: incorrect eslint-plugin-unicorn(no-useless-spread) reported for Uint8Array #7936

@samualtnorman

Description

@samualtnorman

What version of Oxlint are you using?

0.15.2

What command did you run?

oxlint

What does your .oxlint.json config file look like?

not using one

What happened?

code like

[ ...new Uint8Array([ 1, 2, 3 ]) ].map(byte => byte.toString())

reports eslint-plugin-unicorn(no-useless-spread): Using a spread operator here creates a new array unnecessarily. even though the spread is necessary

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-bugCategory - Buggood first issueExperience Level - Good for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions