Skip to content

Allow local mutation #349

@user72356

Description

@user72356

Is there a rule that lets me mutate a local object? Something like:

function test()
{
    const myVar = { hello: "" };
    myVar.hello = "world";
}

I feel that maybe there should be an allowLocalMutation rule that allows the code above, for those who want to be less strict about total immutability and only want the input parameters to be immutable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis issue needs to be triaged.Type: IdeaMarks an idea, which might be accepted and implemented.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions