Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Unexpected indentation with chaining, 2.0.3 #620

@bazineta

Description

@bazineta

Assume that Fetch is an imported module, with a couple of useful functions, maps and fail.

The following will lint cleanly:

Fetch.maps()
.then (maps) -> # omitted for brevity
.done (maps) -> # omitted for brevity
.fail (error) -> # omitted for brevity

But the following will not, and results in an unexpected indentation error on the .fail line:

Fetch.maps()
.then (maps) -> # omitted for brevity
.done (maps) -> # omitted for brevity
.fail Fetch.fail

Basically, so long as the chained function is inline, it lints, but not if the function isn't inline.

This seems to be a regression; the issue doesn't occur in 1.16.0.

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