Skip to content

no-expression-statements: allow await Promise<void> when ignoreVoid is true #1052

Description

@cn-stephen

Suggestion

Right now, thanks to #865 we don't get flagged by a Promise<void> returning function

groupService.delete(params.id); <-- not flagged

But if we await it, which we almost always should, it's flagged

await groupService.delete(params.id); <-- flagged :(

I think we should allow await Promise<void> for these scenarios, when we're using the ignoreVoid option

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause a problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions