Skip to content

Linter: warn about scoping rules in object and object comprehensions #386

Open
@sbarzowski

Description

@sbarzowski

It may feel weird for many users that even though object field names etc. are syntactically inside the object, the variable scope is actually outside it. Perhaps we could issue a warning when there is an object local with the name coinciding with the name of variable used in object fields or comprehension expressions.

See: #385

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