question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New rule: same line or newline for `@else` statements

See original GitHub issue

via 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:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
kristerkaricommented, Nov 8, 2016

Yeah, definitely should have this.

2reactions
dryomacommented, Nov 7, 2016

Wow, we still don’t have it 😃 Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found