Sass lint: use "stroustrup" instead of "1TBS" as brace style convention.
See: https://en.wikipedia.org/wiki/Indent_style
Pros:
- Easily add or remove lines within a `@if`/`@else if`/`@else` block,
without having to rearrange the braces.
- Able to add comments that describe a condition (`@if (...)`, `@else
if (...)` or `@else`) or the whole conditional block.
- Clearly separate the different parts of the conditional block.
Cons:
- Not commonly used
brace-style:
- 1
- - allow-single-line: false
+ - style: stroustrup
+ - allow-single-line: true
class-name-format:
- 1
top: 100%;
@if $global-text-direction == 'rtl' {
right: auto;
- } @else {
+ }
+ @else {
left: auto;
}
}
@include grid-column-gutter($value);
}
}
- } @else {
+ }
+ @else {
// breakpoint name
@if type-of($gutter) == 'string' {
$gutter: grid-column-gutter($gutter, $gutters);
@function get-color($key) {
@if map-has-key($foundation-palette, $key) {
@return map-get($foundation-palette, $key);
- } @else {
+ }
+ @else {
@error 'given $key is not available in $foundation-palette';
}
}
@if $keep == 'keys' {
@return $keys;
- } @else if $keep == 'values' {
+ }
+ @else if $keep == 'values' {
@return $values;
- } @else {
+ }
+ @else {
@return zip($keys, $values);
}
}