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

no-empty raises lint error for empty blocks with a comment in it #274

Closed
@Retsam

Description

@Retsam

What version of TypeScript are you using?
2.2.2

What version of typescript-eslint-parser are you using?
2.1.0

What code were you trying to parse?

try {
    codeThatMightThrowAnError();
} catch(err) {
    //Intentionally swallow error
}

What did you expect to happen?
No error; no-empty doesn't error if there's a comment in the empty block, see the eslint documentation for no-empty.

What happened?
Linter failed with "error Empty block statement"

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