Skip to content

spaced-line-comment doesn't allow "//" by itself #1488

@ljharb

Description

@ljharb

It appears that the spaced-line-comment rule errors out when "//" is the only contents of a line. Adding "\n" as an exception doesn't seem to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyruleRelates to ESLint's core rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions