Skip to content

9$: Warn on semicolon in if-else chain #265

Open
@strager

Description

@strager

The following code likely has a mistake:

if (x) {
  f();
} else; {  // mistake: stray semicolon
  g();
}

produce a warning for code like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for hireGet paid for working on this task: https://quick-lint-js.com/hiring.html

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions