Skip to content

Next-line rule was too strict#4847

Merged
mhegazy merged 1 commit into
masterfrom
looser-next-line-rule
Sep 29, 2015
Merged

Next-line rule was too strict#4847
mhegazy merged 1 commit into
masterfrom
looser-next-line-rule

Conversation

@weswigham
Copy link
Copy Markdown
Member

We have a few places where we do this:

if {
  //...
}
// Look, a comment
else {
  //...
}

I don't think we want to forbid these cases, so I'm loosening the requirement from "must be on the line after the prior curly brace" to "can't be on the same line as the curly brace".

We have a few places where we do this:
```ts
if {
  //...
}
// Look, a comment
else {
  //...
}
```
I don't think we want to forbid these cases, so I'm loosening the requirement from "must be on the line after the prior curly brace" to "can't be on the same line as the curly brace".
@DanielRosenwasser
Copy link
Copy Markdown
Member

👍

mhegazy added a commit that referenced this pull request Sep 29, 2015
@mhegazy mhegazy merged commit bd5d096 into master Sep 29, 2015
@mhegazy mhegazy deleted the looser-next-line-rule branch September 29, 2015 19:01
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants