New rule: same line or newline for `@else` statements
See original GitHub issuevia https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md#elseplacement
newline:
@if {
...
}
@else {
...
}
same line:
@if {
...
} @else {
...
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:7
Top Results From Across the Web
New rule: same line or newline for @else statements #82
Hmm, seems this rule won't be that easy. Firstly, to be able to control @else placement at all, a user would need to...
Read more >Why does it matter to put the else statement on a new line?
So I thought, if i don't put the else on the same line, the code thinks the if statement has ended and therefore...
Read more >coding style - Should curly braces appear on their own line?
When I was a student I used to put curly braces on the same line, so that there are fewer lines, and the...
Read more >Curly brackets: same line or new line? : r/learnjava - Reddit
I would prefer them on the same line, but for whatever reason the new-line way is the convention you're supposed to follow, so...
Read more >nonblock-statement-body-position - Pluggable JavaScript Linter
Options. This rule accepts a string option: "beside" (default) disallows a newline before a single-line statement. "below" requires a newline before a single- ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, definitely should have this.
Wow, we still don’t have it 😃 Thanks.