Skip to content

Maybe allow index acces to list literals/comprehensions #37

@PeterJCLaw

Description

@PeterJCLaw

Possibly related to #36, though seemingly separate given the different message, I think there's a bug where a (correctly) wrapped list literal or comprehension causes a (correctly not wrapped) index access to be flagged.

x = [
    'a',
][0]  # JS101 on col 4 of this line

I realise this is a slightly odd pattern, though it seems to fit within the rules this plugin is trying to enforce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions