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

Comment in SwitchCase triggers newline-before-return #289

@scottohara

Description

@scottohara

eslint/eslint#5754 describes an issue where a // no default comment at the end of a SwitchStatement (to satisfy the default-case rule when there is no default case) triggers the newline-before-return.

This was resolved in espree (eslint/js#257); but a similar fix is required to babel-eslint

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions