Skip to content

Ramda's R.sort function fails immutable-data #294

@JoRios1006

Description

@JoRios1006

Bug Report

Ramda R.sort fails immutable-data

Expected behavior

To not do it, because is a pure function

Actual behavior

24:12 error Modifying an array is not allowed functional/immutable-data

Steps to reproduce

Default plugin config, nothing weird.

const R = require("ramda");
R.sort( (x,y) => x - y, [1,2,3,4,5,6]);

Additional info

eslint": "^8.3.0",
"eslint-plugin-functional": "^4.0.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: Not ReproducibleThe bug could not be reproduced.Status: Awaiting ResponseIssue or PR awaits response from the creator.Status: StaleThere has not been activity on this issue or PR for quite some time.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions