Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
strager opened this issue May 5, 2021 · 1 comment · May be fixed by #290
Open

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

strager opened this issue May 5, 2021 · 1 comment · May be fixed by #290
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html

Comments

@strager
Copy link
Collaborator

strager commented May 5, 2021

The following code likely has a mistake:

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

produce a warning for code like this.

@strager strager added the for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html label May 5, 2021
@strager
Copy link
Collaborator Author

strager commented May 13, 2021

@someoneigna made a PR for this task. (GitHub won't let me assign them this task, though, because they haven't made a comment.) #290

@strager strager linked a pull request May 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant