Skip to content

Formatting: parenthesize comprehension as postfix conditional #167

@helixbass

Description

@helixbass

Eg this:

throw new Error 'b' unless elm? for elm in elms

should get explicit parentheses to make it more obvious that it's not doing what you expected:

throw new Error 'b' unless (elm? for elm in elms)

See jashkenas/coffeescript#5309, helixbass/eslint-plugin-coffee#37

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