Skip to content

no-reassigned-consts doesn't deal with default parameters #3

@betaorbust

Description

@betaorbust

betaorbust/eslint-plugin-no-reassigned-consts#7

The plugin currently raises an error when destructuring with a default value.

const {bar='bar'} = foo; // Raises error 'bar is a constant and should not be reassigned'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions