Skip to content

immutable-data.ignoreNonConstDeclarations doesn't complain mutating function arguments #724

@rickmed

Description

@rickmed

Suggestion

So I think the idea of this rule is to treat everything immutable (by using const everywhere and avoiding typing everything as Readonly) and use let when explicitly want to mutate a variable/object. But it does not complain if mutating a function argument. Could it treat function arguments as if declared with const (and if you wish to mutate, use a naming pattern or something else)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions